diff --git a/changelog/unreleased/bugfix-update-file-list-on-new-file b/changelog/unreleased/bugfix-update-file-list-on-new-file new file mode 100644 index 00000000000..ab531f9e9ff --- /dev/null +++ b/changelog/unreleased/bugfix-update-file-list-on-new-file @@ -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 diff --git a/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue b/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue index d95af1daff4..81995931b75 100644 --- a/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue +++ b/packages/web-app-files/src/components/AppBar/CreateAndUpload.vue @@ -397,6 +397,8 @@ export default { ) } + this.UPSERT_RESOURCE(buildResource(resource)) + if (this.newFileAction) { const fileId = resource.fileInfo[DavProperty.FileId] @@ -406,9 +408,6 @@ export default { return } - resource = buildResource(resource) - - this.UPSERT_RESOURCE(resource) this.hideModal() if (this.isPersonalLocation) {