Skip to content

Commit bea9dae

Browse files
authored
Merge pull request #45688 from nextcloud/artonge/fix/show_non_writable_folders
Show non writable folders during move or copy
2 parents c925290 + ae0106e commit bea9dae

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,15 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes:
182182
const filePicker = getFilePickerBuilder(t('files', 'Choose destination'))
183183
.allowDirectories(true)
184184
.setFilter((n: Node) => {
185-
// We only want to show folders that we can create nodes in
186-
return (n.permissions & Permission.CREATE) !== 0
187-
// We don't want to show the current nodes in the file picker
188-
&& !fileIDs.includes(n.fileid)
185+
// We don't want to show the current nodes in the file picker
186+
return !fileIDs.includes(n.fileid)
189187
})
190188
.setMimeTypeFilter([])
191189
.setMultiSelect(false)
192190
.startAt(dir)
193191

194192
return new Promise((resolve, reject) => {
195-
filePicker.setButtonFactory((_selection, path: string) => {
193+
filePicker.setButtonFactory((selection: Node[], path: string) => {
196194
const buttons: IFilePickerButton[] = []
197195
const target = basename(path)
198196

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)