mirror of
https://github.com/nextcloud/server.git
synced 2024-08-07 03:07:59 +02:00
fix(files): Don't react to clicks when renaming
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
efe3244acf
commit
8e0be0a238
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user