aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-12-06 16:09:57 +0100
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-12-10 10:31:59 +0000
commit232651774ec469b0da8790b97cb0438b497d355f (patch)
tree64d4121fd7349e63cc05ddd83962f4b5cf08887c /apps
parent5af0d137e7ba016488e3717e28d698fda195dc24 (diff)
downloadnextcloud-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.vue4
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()