aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/src/components/SetStatusModal.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-05-08 13:47:23 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-05-15 14:31:32 +0200
commit2133b0ecddecb56877aa5c16a080e6b584a6f96e (patch)
tree8f4658e9c9c155faea97c445899966962f68de15 /apps/user_status/src/components/SetStatusModal.vue
parentb9026acf3ffbf8f7ea060761b09bb8ec8b10e62f (diff)
downloadnextcloud-server-2133b0ecddecb56877aa5c16a080e6b584a6f96e.tar.gz
nextcloud-server-2133b0ecddecb56877aa5c16a080e6b584a6f96e.zip
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 <opensource@fthiessen.de>
Diffstat (limited to 'apps/user_status/src/components/SetStatusModal.vue')
-rw-r--r--apps/user_status/src/components/SetStatusModal.vue6
1 files changed, 5 insertions, 1 deletions
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" />
- <PredefinedStatusesList @select-status="selectPredefinedMessage" />
+ <PredefinedStatusesList :is-custom-status="isCustomStatus" @select-status="selectPredefinedMessage" />
<ClearAtSelect :clear-at="clearAt"
@select-clear-at="setClearAt" />
<div class="status-buttons">
@@ -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,