mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
Merge pull request #46019 from nextcloud/backport/45984/stable28
[stable28] Don't trigger action when renaming
This commit is contained in:
commit
6b00b80cc4
3 changed files with 12 additions and 3 deletions
|
|
@ -161,6 +161,10 @@ export default defineComponent({
|
|||
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
|
||||
},
|
||||
},
|
||||
|
||||
isRenaming() {
|
||||
return this.renamingStore.renamingNode === this.source
|
||||
},
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
|
@ -225,6 +229,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