diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-11-19 15:09:05 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-11-23 12:21:42 +0100 |
commit | 92fe694b7f088b0aea797b83506e4ad18a061dbf (patch) | |
tree | 05eddd0931cc6b377a0e0c3dc9b56c609526f420 /apps/user_status/src/components/SetStatusModal.vue | |
parent | c35ad0c20d420c3056565c6bad21133dc035b2df (diff) | |
download | nextcloud-server-92fe694b7f088b0aea797b83506e4ad18a061dbf.tar.gz nextcloud-server-92fe694b7f088b0aea797b83506e4ad18a061dbf.zip |
Fix multiple bugs with user status
* Fix editing the status while on a call, don't send a bogus request
* Clean backup user status when setting up a new status manually
* A bit more type hinting
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/user_status/src/components/SetStatusModal.vue')
-rw-r--r-- | apps/user_status/src/components/SetStatusModal.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_status/src/components/SetStatusModal.vue b/apps/user_status/src/components/SetStatusModal.vue index 50fa79b4cc5..db56ea282bc 100644 --- a/apps/user_status/src/components/SetStatusModal.vue +++ b/apps/user_status/src/components/SetStatusModal.vue @@ -101,6 +101,7 @@ export default { clearAt: null, icon: null, message: '', + messageId: '', isSavingStatus: false, statuses: getAllStatusOptions(), } @@ -191,7 +192,7 @@ export default { try { this.isSavingStatus = true - if (this.messageId !== null) { + if (this.messageId !== undefined && this.messageId !== null) { await this.$store.dispatch('setPredefinedMessage', { messageId: this.messageId, clearAt: this.clearAt, |