mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
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:
committed by
Tim Abbott
parent
c50de056c9
commit
19f2795e41
@@ -62,10 +62,10 @@ export function update_name_change_display() {
|
||||
export function update_email_change_display() {
|
||||
if (!settings_data.user_can_change_email()) {
|
||||
$("#change_email_button").prop("disabled", true);
|
||||
$(".change_email_tooltip").show();
|
||||
$("#change_email_button_container").addClass("email_changes_disabled_tooltip");
|
||||
} else {
|
||||
$("#change_email_button").prop("disabled", false);
|
||||
$(".change_email_tooltip").hide();
|
||||
$("#change_email_button_container").removeClass("email_changes_disabled_tooltip");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user