mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
tooltips: Remove unnecessary checks for message action buttons in tippy.
We handled tooltips for failed message action buttons separately through our default tippy-zulip-tooltip class because of a diffrent html structure for these buttons. But as we refactored html for those buttons to have same structure as for other buttons in message action this extra check is no more needed.
This commit is contained in:
committed by
Tim Abbott
parent
e7b1de8ace
commit
a63a23087f
@@ -140,14 +140,7 @@ export function initialize() {
|
|||||||
const edit_button = elem.find("i.edit_content_button");
|
const edit_button = elem.find("i.edit_content_button");
|
||||||
content = edit_button.attr("data-tippy-content");
|
content = edit_button.attr("data-tippy-content");
|
||||||
}
|
}
|
||||||
if (content === undefined) {
|
|
||||||
// If content is still undefined it is because content
|
|
||||||
// is specified on inner i tags and is handled by our
|
|
||||||
// general tippy-zulip-tooltip class. So we return
|
|
||||||
// false here to avoid showing an extra empty tooltip
|
|
||||||
// for such cases.
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
instance.setContent(content);
|
instance.setContent(content);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user