aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-12-12 19:08:07 +0100
committerGitHub <noreply@github.com>2024-12-12 19:08:07 +0100
commit5fd288a915018911acf88d91f0e5a3b03ac1cc78 (patch)
tree24dc1fc8a648d65ce4a11bc4cf2bc6d25040dade /apps
parentd8c9c0ca2e934fe698e0901a4f87ba8b0afa6455 (diff)
parent7994eb1f1d156458431e2b16b089a4c26ef054df (diff)
downloadnextcloud-server-5fd288a915018911acf88d91f0e5a3b03ac1cc78.tar.gz
nextcloud-server-5fd288a915018911acf88d91f0e5a3b03ac1cc78.zip
Merge pull request #49752 from nextcloud/backport/49693/stable30
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 34b134f39ba..446b8c77739 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()