diff options
author | Louis Chemineau <louis@chmn.me> | 2024-06-13 16:08:41 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-06-14 11:03:13 +0200 |
commit | 6e9f04b59e8a574eb22a74461b144067385ca8dd (patch) | |
tree | 3158669379e7f8559acac5f9dc690a664fe12ed5 /apps/files/src/actions | |
parent | 3187425ca5ad83f1a4bff80246d6a57dbdf67f09 (diff) | |
download | nextcloud-server-6e9f04b59e8a574eb22a74461b144067385ca8dd.tar.gz nextcloud-server-6e9f04b59e8a574eb22a74461b144067385ca8dd.zip |
fix(files): Show non writable folders during move or copy
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/src/actions')
-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 2456340a02c..d969d87efbe 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -200,17 +200,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) |