From 5d946904bad2b6004740fd3edb048871c6999cb7 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 16 Feb 2022 20:06:48 +0100 Subject: [PATCH] Fix #5530: Upsert new files into files list --- changelog/unreleased/bugfix-update-file-list-on-new-file | 6 ++++++ .../web-app-files/src/components/AppBar/CreateAndUpload.vue | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 changelog/unreleased/bugfix-update-file-list-on-new-file 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) {