diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-12-06 16:09:57 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-12-10 10:31:59 +0000 |
commit | 232651774ec469b0da8790b97cb0438b497d355f (patch) | |
tree | 64d4121fd7349e63cc05ddd83962f4b5cf08887c /apps | |
parent | 5af0d137e7ba016488e3717e28d698fda195dc24 (diff) | |
download | nextcloud-server-232651774ec469b0da8790b97cb0438b497d355f.tar.gz nextcloud-server-232651774ec469b0da8790b97cb0438b497d355f.zip |
fix(files): cancel renaming on enter if no file name changes
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/FileEntry/FileEntryName.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryName.vue b/apps/files/src/components/FileEntry/FileEntryName.vue index 1eff841738b..2a727b55c29 100644 --- a/apps/files/src/components/FileEntry/FileEntryName.vue +++ b/apps/files/src/components/FileEntry/FileEntryName.vue @@ -241,6 +241,10 @@ export default defineComponent({ } const oldName = this.source.basename + if (newName === oldName) { + this.stopRenaming() + return + } try { const status = await this.renamingStore.rename() |