Skip to content

Commit

Permalink
fix: Make rename update the file list properly on files2vue
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Dec 7, 2023
1 parent 0c5d2b2 commit a1f2a06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/view/FilesAppIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ export default {
const node = await this.getFileNode()

if (node) {
if (name) {
node.rename(name)
emit('files:node:renamed', this.source)
}
if (mtime) {
node._data.mtime = new Date(mtime)
}
Expand Down
2 changes: 1 addition & 1 deletion src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export default {
FilesAppIntegration.createNewFile(args.DocumentType)
break
case 'File_Rename':
FilesAppIntegration.rename(args.NewName)
FilesAppIntegration.rename(decodeURIComponent(args.NewName))
break
case 'UI_FileVersions':
FilesAppIntegration.showRevHistory()
Expand Down

0 comments on commit a1f2a06

Please sign in to comment.