FIX: Hide presence toggle icon is backwards (#29737)

This commit is contained in:
Jan Cernik 2024-11-13 09:54:40 -03:00 committed by GitHub
parent 920fa4c248
commit 3df3ad6ed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 5 deletions

View File

@ -23,16 +23,28 @@
</li>
{{/if}}
<li class="online" title={{i18n "presence_toggle.title"}}>
<li
class={{concat-class
"presence-toggle"
(unless this.isPresenceHidden "enabled")
}}
title={{i18n "presence_toggle.title"}}
>
<DButton @action={{this.togglePresence}} class="btn-flat profile-tab-btn">
{{d-icon (if this.isPresenceHidden "toggle-on" "toggle-off")}}
{{d-icon (if this.isPresenceHidden "toggle-off" "toggle-on")}}
<span class="item-label">
{{i18n "presence_toggle.label"}}
{{#if this.isPresenceHidden}}
{{i18n "presence_toggle.offline"}}
{{else}}
{{i18n "presence_toggle.online"}}
{{/if}}
</span>
</DButton>
</li>
<li class="do-not-disturb">
<li
class={{concat-class "do-not-disturb" (if this.isInDoNotDisturb "enabled")}}
>
<DButton
@action={{this.doNotDisturbClick}}
class="btn-flat profile-tab-btn"

View File

@ -208,6 +208,9 @@
.d-icon {
padding-top: 0;
}
&.enabled .d-icon {
color: var(--tertiary);
}
}
.set-user-status {

View File

@ -2147,7 +2147,8 @@ en:
remove_status: "Remove status"
presence_toggle:
label: "Online"
online: "Online"
offline: "Offline"
title: "Toggle presence features"
user_tips: