users: add dropdown actions to username tooltips.

This commit is contained in:
evazion
2020-07-13 16:55:02 -05:00
parent 88bbd1e3f0
commit cf4469f902
3 changed files with 90 additions and 3 deletions

View File

@@ -25,6 +25,19 @@ UserTooltip.initialize = function () {
onShow: UserTooltip.on_show,
onHide: UserTooltip.on_hide,
});
delegate("body", {
allowHTML: true,
interactive: true,
theme: "common-tooltip",
target: ".user-tooltip-menu-button",
placement: "bottom",
touch: false,
trigger: "click",
content: (element) => {
return $(element).parents(".user-tooltip").find(".user-tooltip-menu").get(0);
}
});
};
UserTooltip.on_show = async function (instance) {