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}}
|
@onReaction={{this.messageInteractor.react}}
|
||||||
@message={{this.message}}
|
@message={{this.message}}
|
||||||
@showCount={{false}}
|
@showCount={{false}}
|
||||||
|
@disableTooltip={{true}}
|
||||||
/>
|
/>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default class ChatMessageReaction extends Component {
|
||||||
@tracked isActive = false;
|
@tracked isActive = false;
|
||||||
|
|
||||||
registerTooltip = modifier((element) => {
|
registerTooltip = modifier((element) => {
|
||||||
if (!this.popoverContent?.length) {
|
if (this.disableTooltip || !this.popoverContent?.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,10 @@ export default class ChatMessageReaction extends Component {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
get disableTooltip() {
|
||||||
|
return this.args.disableTooltip ?? false;
|
||||||
|
}
|
||||||
|
|
||||||
get showCount() {
|
get showCount() {
|
||||||
return this.args.showCount ?? true;
|
return this.args.showCount ?? true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue