Merge pull request #46019 from nextcloud/backport/45984/stable28

[stable28] Don't trigger action when renaming
This commit is contained in:
Louis 2024-07-01 22:15:33 +02:00 committed by GitHub
commit 6b00b80cc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 3 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long