FIX: Hide presence toggle icon is backwards (#29737)
This commit is contained in:
parent
920fa4c248
commit
3df3ad6ed6
|
@ -23,16 +23,28 @@
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/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">
|
<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">
|
<span class="item-label">
|
||||||
{{i18n "presence_toggle.label"}}
|
{{#if this.isPresenceHidden}}
|
||||||
|
{{i18n "presence_toggle.offline"}}
|
||||||
|
{{else}}
|
||||||
|
{{i18n "presence_toggle.online"}}
|
||||||
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
</DButton>
|
</DButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="do-not-disturb">
|
<li
|
||||||
|
class={{concat-class "do-not-disturb" (if this.isInDoNotDisturb "enabled")}}
|
||||||
|
>
|
||||||
<DButton
|
<DButton
|
||||||
@action={{this.doNotDisturbClick}}
|
@action={{this.doNotDisturbClick}}
|
||||||
class="btn-flat profile-tab-btn"
|
class="btn-flat profile-tab-btn"
|
||||||
|
|
|
@ -208,6 +208,9 @@
|
||||||
.d-icon {
|
.d-icon {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
&.enabled .d-icon {
|
||||||
|
color: var(--tertiary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.set-user-status {
|
.set-user-status {
|
||||||
|
|
|
@ -2147,7 +2147,8 @@ en:
|
||||||
remove_status: "Remove status"
|
remove_status: "Remove status"
|
||||||
|
|
||||||
presence_toggle:
|
presence_toggle:
|
||||||
label: "Online"
|
online: "Online"
|
||||||
|
offline: "Offline"
|
||||||
title: "Toggle presence features"
|
title: "Toggle presence features"
|
||||||
|
|
||||||
user_tips:
|
user_tips:
|
||||||
|
|
Loading…
Reference in New Issue