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:
authorMarco Ambrosini <marcoambrosini@pm.me>2022-06-23 16:58:52 +0300
committerJoas Schilling <coding@schilljs.com>2022-08-31 09:15:38 +0300
commitb32a4b72b9b7583bcd1b0753faa50b66853d66b8 (patch)
tree89c43f60f2f13b28cc41453367ae735d11c8b2fb /src/components
parent01f3cea5ffd26b8e6b815ea8059424687f6a046e (diff)
Open text document
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index 3efca3294..d97dcfb11 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -630,7 +630,11 @@ export default {
async handleCreateTextFile() {
const filePath = this.textFileTitle + '.md'
await createTextFile(filePath)
- await shareFile(filePath, this.token)
+ const response = await shareFile(filePath, this.token)
+ // TODO: before getting the link from the system message we need
+ // to wait till the message itself is received
+ const link = this.$store.getters.getSharedFileLink(this.token, response.data.ocs.data.file_source)
+ window.open(link, '_self')
this.dismissTextFileCreation()
},