Skip to content

Commit

Permalink
Merge pull request #3346 from nextcloud/backport/3345/stable28
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Dec 7, 2023
2 parents 0c5d2b2 + a1f2a06 commit 4e95866
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 4e95866

Please sign in to comment.