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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-10-13 13:01:20 +0300
committerVincent Petry <vincent@nextcloud.com>2020-10-20 13:18:13 +0300
commitf7e17060226570c875ab039784a55b4178748313 (patch)
tree56124a90d92e477cba881c81d38dd75fac124753 /apps/user_status/src
parent547c9dbd51698d29afd3a6f79a393877f5bf28e5 (diff)
Fix status clearing with initial empty value
When selecting an emoji but not specifying a message, the internal message value was null which caused a server validation error on sending. This fixes the SetStatusModal to always work with an empty string upfront, as this is the value the field would have if edited and cleared manually. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/user_status/src')
-rw-r--r--apps/user_status/src/components/SetStatusModal.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_status/src/components/SetStatusModal.vue b/apps/user_status/src/components/SetStatusModal.vue
index f651bc62891..3ba15ec129d 100644
--- a/apps/user_status/src/components/SetStatusModal.vue
+++ b/apps/user_status/src/components/SetStatusModal.vue
@@ -98,7 +98,7 @@ export default {
return {
clearAt: null,
icon: null,
- message: null,
+ message: '',
statuses: getAllStatusOptions(),
}
},
@@ -119,7 +119,7 @@ export default {
mounted() {
this.messageId = this.$store.state.userStatus.messageId
this.icon = this.$store.state.userStatus.icon
- this.message = this.$store.state.userStatus.message
+ this.message = this.$store.state.userStatus.message || ''
if (this.$store.state.userStatus.clearAt !== null) {
this.clearAt = {