From 40a4ecd4cfc328249168782b97d3b0211e2f47f0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 31 Aug 2022 07:09:27 +0200 Subject: Keep the sidebar visible Signed-off-by: Joas Schilling --- src/components/NewMessageForm/NewMessageForm.vue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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, -- cgit v1.2.3