From 2133b0ecddecb56877aa5c16a080e6b584a6f96e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 8 May 2023 13:47:23 +0200 Subject: fix(user_status): Use role=radio for predefined statuses in online status modal * Instead of tabable DIVs properly assign the radio role * Set role to radiogroup of list container to group the predefined statuses Signed-off-by: Ferdinand Thiessen --- apps/user_status/src/components/SetStatusModal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/user_status/src/components/SetStatusModal.vue') diff --git a/apps/user_status/src/components/SetStatusModal.vue b/apps/user_status/src/components/SetStatusModal.vue index 73e07573e5c..e3f2ea27c04 100644 --- a/apps/user_status/src/components/SetStatusModal.vue +++ b/apps/user_status/src/components/SetStatusModal.vue @@ -56,7 +56,7 @@ :icon="backupIcon" :message="backupMessage" @select="revertBackupFromServer" /> - +
@@ -109,6 +109,7 @@ export default { return { clearAt: null, editedMessage: '', + isCustomStatus: true, isSavingStatus: false, statuses: getAllStatusOptions(), } @@ -189,6 +190,7 @@ export default { * @param {string} icon The new icon */ setIcon(icon) { + this.isCustomStatus = true this.$store.dispatch('setCustomMessage', { message: this.message, icon, @@ -204,6 +206,7 @@ export default { * @param {string} message The new message */ setMessage(message) { + this.isCustomStatus = true this.editedMessage = message }, /** @@ -220,6 +223,7 @@ 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, -- cgit v1.2.3