mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(files): Show non writable folders during move or copy
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
18cf61df9f
commit
ae0106ef9e
5 changed files with 9 additions and 11 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
4
dist/files-init.js
vendored
4
dist/files-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-init.js.map
vendored
2
dist/files-init.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue