mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
fix(files): Don't react to clicks when renaming
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
e22eabb5c3
commit
841cf96def
1 changed files with 9 additions and 0 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue