瀏覽代碼

Merge pull request #45688 from nextcloud/artonge/fix/show_non_writable_folders

Show non writable folders during move or copy
pull/45161/head
Louis 3 週之前
父節點
當前提交
bea9daee9c
沒有連結到貢獻者的電子郵件帳戶。
共有 5 個檔案被更改,包括 9 行新增11 行删除
  1. 3
    5
      apps/files/src/actions/moveOrCopyAction.ts
  2. 2
    2
      dist/files-init.js
  3. 1
    1
      dist/files-init.js.map
  4. 2
    2
      dist/files-main.js
  5. 1
    1
      dist/files-main.js.map

+ 3
- 5
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)


+ 2
- 2
dist/files-init.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
dist/files-init.js.map
文件差異過大導致無法顯示
查看文件


+ 2
- 2
dist/files-main.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
dist/files-main.js.map
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存