diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-31 08:09:27 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-31 09:15:43 +0300 |
commit | 40a4ecd4cfc328249168782b97d3b0211e2f47f0 (patch) | |
tree | c18e8f4c41c1c0746dd70c3dd3a914dcaa29aab2 /src | |
parent | a811f2f84a58b86381368b1e646b5ea672d63b62 (diff) |
Keep the sidebar visible
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/NewMessageForm/NewMessageForm.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index eb97d1528..aa74fe158 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -683,6 +683,12 @@ export default { await shareFile(filePath, this.token, '', '') + // The Viewer expects a file to be set in the sidebar if the sidebar + // is open. + if (this.$store.getters.getSidebarStatus) { + OCA.Files.Sidebar.state.file = filePath + } + OCA.Viewer.open({ // Viewer expects an internal absolute path starting with "/". path: filePath, |