diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-29 11:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:32:08 +0100 |
commit | f48e478791f1b1ef8f6bf0bac6d07a60f222ed39 (patch) | |
tree | 2b3d7c8770a2aa0884b648dd368203313b049437 /apps | |
parent | 7fe1a222624146a9693cb0a0584aa28b3ebd9a08 (diff) | |
parent | 28dc6e49e0585f767502c69748542e89571f58ed (diff) | |
download | nextcloud-server-f48e478791f1b1ef8f6bf0bac6d07a60f222ed39.tar.gz nextcloud-server-f48e478791f1b1ef8f6bf0bac6d07a60f222ed39.zip |
Merge pull request #43813 from nextcloud/backport/43248/stable28
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_status/src/components/SetStatusModal.vue | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/apps/user_status/src/components/SetStatusModal.vue b/apps/user_status/src/components/SetStatusModal.vue index 4047db23843..682e3c8e8ca 100644 --- a/apps/user_status/src/components/SetStatusModal.vue +++ b/apps/user_status/src/components/SetStatusModal.vue @@ -125,7 +125,6 @@ export default { return { clearAt: null, editedMessage: '', - isCustomStatus: true, isSavingStatus: false, statuses: getAllStatusOptions(), } @@ -213,7 +212,6 @@ export default { * @param {string} icon The new icon */ setIcon(icon) { - this.isCustomStatus = true this.$store.dispatch('setCustomMessage', { message: this.message, icon, @@ -229,7 +227,6 @@ export default { * @param {string} message The new message */ setMessage(message) { - this.isCustomStatus = true this.editedMessage = message }, /** @@ -246,7 +243,6 @@ export default { * @param {object} status The predefined status object */ selectPredefinedMessage(status) { - this.isCustomStatus = false this.clearAt = status.clearAt this.$store.dispatch('setPredefinedMessage', { messageId: status.id, @@ -266,13 +262,11 @@ export default { try { this.isSavingStatus = true - if (this.isCustomStatus) { - await this.$store.dispatch('setCustomMessage', { - message: this.editedMessage, - icon: this.icon, - clearAt: this.clearAt, - }) - } + await this.$store.dispatch('setCustomMessage', { + message: this.editedMessage, + icon: this.icon, + clearAt: this.clearAt, + }) } catch (err) { showError(this.$t('user_status', 'There was an error saving the status')) console.debug(err) |