Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-31 08:09:27 +0300
committerJoas Schilling <coding@schilljs.com>2022-08-31 09:15:43 +0300
commit40a4ecd4cfc328249168782b97d3b0211e2f47f0 (patch)
treec18e8f4c41c1c0746dd70c3dd3a914dcaa29aab2 /src/components
parenta811f2f84a58b86381368b1e646b5ea672d63b62 (diff)
Keep the sidebar visible
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue6
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,