diff options
author | Louis <louis@chmn.me> | 2024-06-20 12:16:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 12:16:29 +0200 |
commit | bea9daee9c25f5547ee19839fe2d6d5cbf26fd0f (patch) | |
tree | c131c6fbd32658e1136b60350bede8aff092659b /apps | |
parent | c92529053df466fb5e389a4a4261aefe53b24481 (diff) | |
parent | ae0106ef9e9b4a91d385fff7490e17963e73c40d (diff) | |
download | nextcloud-server-bea9daee9c25f5547ee19839fe2d6d5cbf26fd0f.tar.gz nextcloud-server-bea9daee9c25f5547ee19839fe2d6d5cbf26fd0f.zip |
Merge pull request #45688 from nextcloud/artonge/fix/show_non_writable_folders
Show non writable folders during move or copy
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/actions/moveOrCopyAction.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index dc24ee708e5..8d200301203 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -182,17 +182,15 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes: const filePicker = getFilePickerBuilder(t('files', 'Choose destination')) .allowDirectories(true) .setFilter((n: Node) => { - // We only want to show folders that we can create nodes in - return (n.permissions & Permission.CREATE) !== 0 - // We don't want to show the current nodes in the file picker - && !fileIDs.includes(n.fileid) + // We don't want to show the current nodes in the file picker + return !fileIDs.includes(n.fileid) }) .setMimeTypeFilter([]) .setMultiSelect(false) .startAt(dir) return new Promise((resolve, reject) => { - filePicker.setButtonFactory((_selection, path: string) => { + filePicker.setButtonFactory((selection: Node[], path: string) => { const buttons: IFilePickerButton[] = [] const target = basename(path) |