diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-02-25 16:45:19 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-03-02 10:46:48 +0100 |
commit | f3a8b0ac8850e95f3284591b547f3f424945da02 (patch) | |
tree | 568c5aa9b29f2603b6322c774d7151b913d62d07 /apps/files | |
parent | 20094af7f9f95914a93bf26cc7ee753504f60afd (diff) | |
download | nextcloud-server-f3a8b0ac8850e95f3284591b547f3f424945da02.tar.gz nextcloud-server-f3a8b0ac8850e95f3284591b547f3f424945da02.zip |
Do not trigger a full filelist reload after creating a new file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/views/TemplatePicker.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue index cd2e52fe7bb..a1fb0f9425c 100644 --- a/apps/files/src/views/TemplatePicker.vue +++ b/apps/files/src/views/TemplatePicker.vue @@ -208,6 +208,8 @@ export default { const fileInfo = response.data.ocs.data this.logger.debug('Created new file', fileInfo) + await fileList?.addAndFetchFileInfo(this.name) + // Run default action const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileInfo.mime, 'file', OC.PERMISSION_ALL) fileAction.action(fileInfo.basename, { @@ -217,9 +219,6 @@ export default { fileActions: fileList?.fileActions, }) - // Reload files list - fileList?.reload?.() || window.location.reload() - this.close() } catch (error) { this.logger.error('Error while creating the new file from template') |