Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #947

Merged
merged 6 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading