aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-12-10 11:53:42 +0100
committerGitHub <noreply@github.com>2024-12-10 11:53:42 +0100
commit70346e0214de4f0da0eab33fc05771bd1efe8097 (patch)
treed762dc51df21db9b8be60f6dc1d408c1c3ac5c77 /apps
parent4da101e2c0e7196415a046c6caaeac2c2290a667 (diff)
parent1ccce41f46b6a8ee28640c2a272730dbe7550d90 (diff)
downloadnextcloud-server-70346e0214de4f0da0eab33fc05771bd1efe8097.tar.gz
nextcloud-server-70346e0214de4f0da0eab33fc05771bd1efe8097.zip
Merge pull request #49693 from nextcloud/fix/files-rename-esc
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()