FIX: disables tooltip on desktop message menu’s reaction (#24650)
This commit is contained in:
parent
a7a7d8e41e
commit
bcca1692c6
|
@ -142,6 +142,7 @@ export default class ChatMessageActionsDesktop extends Component {
|
|||
@onReaction={{this.messageInteractor.react}}
|
||||
@message={{this.message}}
|
||||
@showCount={{false}}
|
||||
@disableTooltip={{true}}
|
||||
/>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
|
|
@ -19,7 +19,7 @@ export default class ChatMessageReaction extends Component {
|
|||
@tracked isActive = false;
|
||||
|
||||
registerTooltip = modifier((element) => {
|
||||
if (!this.popoverContent?.length) {
|
||||
if (this.disableTooltip || !this.popoverContent?.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,10 @@ export default class ChatMessageReaction extends Component {
|
|||
};
|
||||
});
|
||||
|
||||
get disableTooltip() {
|
||||
return this.args.disableTooltip ?? false;
|
||||
}
|
||||
|
||||
get showCount() {
|
||||
return this.args.showCount ?? true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue