Skip to content

Commit

Permalink
Merge pull request #947 from nextcloud-libraries/chore/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Oct 20, 2023
2 parents 7361ea2 + bffe87f commit e56483a
Show file tree
Hide file tree
Showing 5 changed files with 1,451 additions and 1,527 deletions.
6 changes: 4 additions & 2 deletions cypress/components/UploadPicker.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-unused-expressions */
// dist file might not be built when running eslint only
// eslint-disable-next-line import/no-unresolved,n/no-missing-import
import { Folder, Permission, addNewFileMenuEntry, Entry } from '@nextcloud/files'
import { Folder, Permission, addNewFileMenuEntry, type Entry } from '@nextcloud/files'
import { UploadPicker, getUploader } from '../../dist/index.mjs'
import { generateRemoteUrl } from '@nextcloud/router'

Expand Down Expand Up @@ -50,7 +50,7 @@ describe('NewFileMenu handling', () => {
displayName: 'Create empty file',
templateName: 'New file',
iconClass: 'icon-file',
if: (folder: Folder) => (folder.permissions & Permission.CREATE) !== 0,
enabled: (folder: Folder) => (folder.permissions & Permission.CREATE) !== 0,
handler() {},
} as Entry

Expand Down Expand Up @@ -117,6 +117,8 @@ describe('NewFileMenu handling', () => {
root: '/files/user',
}))
})

// Menu should not be visible anymore
cy.get('[data-cy-upload-picker] .action-item__menutoggle')
.as('menuButton')
.should('not.exist')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

import { getCurrentUser, type NextcloudUser } from '@nextcloud/auth'
// @ts-expect-error we do not export typings for @nextcloud/logger
import { getLoggerBuilder } from '@nextcloud/logger'

const getLogger = (user: NextcloudUser|null) => {
Expand Down
Loading

0 comments on commit e56483a

Please sign in to comment.