]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Update displayname on rename fix/files-renaming 46474/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 12 Jul 2024 17:28:50 +0000 (19:28 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Mon, 15 Jul 2024 08:57:56 +0000 (10:57 +0200)
commit374e6e94ac68149fc8597f9c48131666fd1ee356
tree9faa72a42effb6b9cbb6fb0223373bd06f3e5e4b
parentb05e963f15d33502c6dafc435d3d3435d844ab2a
fix(files): Update displayname on rename

Nextcloud always sets the `displayname` attribute, with fallback to the basename.
So if we move or rename a file the old displayname will still be used as we only update the basename but not the displayname.
Safest would be refetch, but if displayname and basename is equal we can safe one request and set the displayname to the new basename.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/components/FileEntry/FileEntryName.vue
cypress/e2e/files/files-rename.cy.ts [new file with mode: 0644]