mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #45984 from nextcloud/artonge/fix/click_while_renaming
Don't trigger action when renaming
This commit is contained in:
commit
9c4b959690
3 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
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