settings-account: Move tooltip for email change disabled to button.

Moves the tooltip when email changes are disabled to be shown on
hovering over the email button text and pencil icon. Removes the
question icon that previously showed the tooltip on hover.
This commit is contained in:
Lauryn Menard
2022-12-09 17:43:36 +01:00
committed by Tim Abbott
parent c50de056c9
commit 19f2795e41
4 changed files with 30 additions and 10 deletions

View File

@@ -398,6 +398,15 @@ export function initialize() {
},
});
delegate("body", {
target: ["#change_email_button_container.email_changes_disabled_tooltip"],
content: $t({defaultMessage: "Email address changes are disabled in this organization."}),
appendTo: () => document.body,
onHidden(instance) {
instance.destroy();
},
});
delegate("body", {
target: "#pm_tooltip_container",
onShow(instance) {