Skip to content

Commit

Permalink
Fix #5530: Upsert new files into files list
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Feb 16, 2022
1 parent 54c8285 commit 0b4ccdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-update-file-list-on-new-file
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Update file list when creating new files

We update the file list now when creating a file in an editor that openes in a new tab (like draw.io).

https://github.com/owncloud/web/issues/5530
https://github.com/owncloud/web/pull/6358
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ export default {
resource = await this.$client.files.fileInfo(path, DavProperties.Default)
}
this.UPSERT_RESOURCE(buildResource(resource))
if (this.newFileAction) {
const fileId = resource.fileInfo[DavProperty.FileId]
Expand All @@ -399,9 +401,6 @@ export default {
return
}
resource = buildResource(resource)
this.UPSERT_RESOURCE(resource)
this.hideModal()
if (this.isPersonalLocation) {
Expand Down

0 comments on commit 0b4ccdd

Please sign in to comment.