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:
Diffstat (limited to 'src/components/NewMessageForm/NewMessageForm.vue')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index c16c5a101..faeb145a5 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -230,11 +230,24 @@ export default {
disabled(newValue) {
this.$refs.uploadMenu.$refs.menuButton.disabled = newValue
},
+
+ text(newValue) {
+ this.$store.dispatch('setCurrentMessageInput', { token: this.token, text: newValue })
+ },
+
+ token(token) {
+ if (token) {
+ this.text = this.$store.getters.currentMessageInput(token) || ''
+ } else {
+ this.text = ''
+ }
+ },
},
mounted() {
EventBus.$on('uploadStart', this.handleUploadStart)
EventBus.$on('retryMessage', this.handleRetryMessage)
+ this.text = this.$store.getters.currentMessageInput(this.token) || ''
},
beforeDestroy() {