瀏覽代碼

Merge pull request #45984 from nextcloud/artonge/fix/click_while_renaming

Don't trigger action when renaming
pull/46017/head
Louis 3 週之前
父節點
當前提交
9c4b959690
No account linked to committer's email address
共有 3 個文件被更改,包括 12 次插入3 次删除
  1. 9
    0
      apps/files/src/components/FileEntryMixin.ts
  2. 2
    2
      dist/files-main.js
  3. 1
    1
      dist/files-main.js.map

+ 9
- 0
apps/files/src/components/FileEntryMixin.ts 查看文件

@@ -144,6 +144,10 @@ export default defineComponent({
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
},
},

isRenaming() {
return this.renamingStore.renamingNode === this.source
},
},

watch: {
@@ -208,6 +212,11 @@ export default defineComponent({
},

execDefaultAction(event) {
// Ignore click if we are renaming
if (this.isRenaming) {
return
}

// Ignore right click.
if (event.button > 1) {
return

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


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


Loading…
取消
儲存