diff options
author | Louis Chemineau <louis@chmn.me> | 2024-06-19 16:45:24 +0200 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-06-20 16:19:01 +0200 |
commit | 8e0be0a238bcf18347313047331b783f643b5489 (patch) | |
tree | aaa0aa520501b2828a12913d645f45f0ff193871 /apps | |
parent | efe3244acfe57b4286c340b169962e60628faf63 (diff) | |
download | nextcloud-server-8e0be0a238bcf18347313047331b783f643b5489.tar.gz nextcloud-server-8e0be0a238bcf18347313047331b783f643b5489.zip |
fix(files): Don't react to clicks when renaming
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/FileEntryMixin.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index e6accb7861a..6a6b69b99fc 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -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 |