[FIX] mail: yellow bubble when there's a mention of self
closes odoo/odoo#123029 X-original-commit: c3f68f3a1d9b0245586bc7f6acece3b9a98bbf91 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -147,7 +147,6 @@ export class Message extends Component {
|
||||
|
||||
get attClass() {
|
||||
return {
|
||||
"o-highlighted-from-mention": this.message.isHighlightedFromMention,
|
||||
"o-highlighted bg-view shadow-lg": this.props.highlighted,
|
||||
"o-selfAuthored": this.message.isSelfAuthored,
|
||||
"o-selected": this.props.messageToReplyTo?.isSelected(
|
||||
|
||||
@@ -83,8 +83,9 @@
|
||||
<div class="position-relative">
|
||||
<div class="o-mail-Message-bubble rounded-bottom-3 position-absolute top-0 start-0 w-100 h-100" t-att-class="{
|
||||
'border': state.isEditing,
|
||||
'bg-info-light border border-info opacity-25': !message.isSelfAuthored and !message.isNote,
|
||||
'bg-success-light border border-success opacity-25': message.isSelfAuthored and !message.isNote,
|
||||
'bg-info-light border border-info opacity-25': !message.isSelfAuthored and !message.isNote and !message.isHighlightedFromMention,
|
||||
'bg-success-light border border-success opacity-25': message.isSelfAuthored and !message.isNote and !message.isHighlightedFromMention,
|
||||
'bg-warning-light border border-warning opacity-50': message.isHighlightedFromMention,
|
||||
}" t-attf-class="{{ isAlignedRight ? 'rounded-start-3' : 'rounded-end-3' }}"/>
|
||||
<div class="position-relative" t-att-class="{
|
||||
'p-1': message.isNote,
|
||||
|
||||
@@ -961,7 +961,7 @@ QUnit.test(
|
||||
});
|
||||
const { openDiscuss } = await start();
|
||||
await openDiscuss(channelId);
|
||||
assert.hasClass($(".o-mail-Message"), "o-highlighted-from-mention");
|
||||
assert.hasClass($(".o-mail-Message-bubble"), "bg-warning-light");
|
||||
}
|
||||
);
|
||||
|
||||
@@ -987,7 +987,7 @@ QUnit.test(
|
||||
});
|
||||
const { openDiscuss } = await start();
|
||||
await openDiscuss(channelId);
|
||||
assert.doesNotHaveClass($(".o-mail-Message"), "o-highlighted-from-mention");
|
||||
assert.doesNotHaveClass($(".o-mail-Message-bubble"), "bg-warning-light");
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user