[FIX] mail: away im status should be yellow in discuss sidebar

Follow-up of https://github.com/odoo/odoo/pull/123143

This is the same fix applied to discus sidebar, which used another
component that had the exact same issue.

This omission comes from code duplication as a consequence of
added technical debt during a recent refactoring of Discuss code.

We will avoid making this mistake again in master, by cleaning and
properly sharing code for all showing of im status in Discuss.

closes odoo/odoo#123526

X-original-commit: 576e3caa50f6e23525b49fc3790ab29647903ed1
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2023-06-05 14:49:57 +02:00
parent cd4e453c01
commit f85a4366b0
3 changed files with 6 additions and 2 deletions
@@ -4,7 +4,7 @@
<xpath expr="//*[@name='chat_static']" position="replace">
<div t-if="chatPartner.im_status === 'leave_online'" class="o-mail-ThreadIcon-online fa fa-fw fa-plane" title="Online"/>
<div t-elif="chatPartner.im_status === 'leave_offline'" class="fa fa-fw fa-plane" title="Out of office"/>
<div t-elif="chatPartner.im_status === 'leave_away'" class="fa fa-fw fa-plane text-warning" title="Away"/>
<div t-elif="chatPartner.im_status === 'leave_away'" class="fa fa-fw fa-plane o-yellow" title="Away"/>
<t t-else="">$0</t>
</xpath>
</t>
+4
View File
@@ -5,3 +5,7 @@
.o-min-width-0 {
min-width: 0;
}
.o-yellow {
color: $yellow;
}
@@ -12,7 +12,7 @@
<t name="chat_static">
<div t-if="chatPartner.im_status === 'online'" class="fa fa-fw fa-circle text-success" title="Online"/>
<div t-elif="chatPartner.im_status === 'offline'" class="fa fa-fw fa-circle-o" title="Offline"/>
<div t-elif="chatPartner.im_status === 'away'" class="fa fa-fw fa-circle text-warning" title="Away"/>
<div t-elif="chatPartner.im_status === 'away'" class="fa fa-fw fa-circle o-yellow" title="Away"/>
<div t-elif="chatPartner.im_status === 'bot'" class="fa fa-fw fa-heart text-success" title="Bot"/>
<div t-else="" class="fa fa-fw fa-question-circle" title="No IM status available"/>
</t>