Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_profile: Remove tooltip from user subscribe button when disabled.

Pratik Chandae228cf9d0818
diff --git a/web/src/user_profile.ts b/web/src/user_profile.ts
index eac5aca4ffd..b2e4e8cce4b 100644
--- a/web/src/user_profile.ts
+++ b/web/src/user_profile.ts
@@ -234,15 +234,11 @@ function change_state_of_subscribe_button(
event.stopPropagation();
assert(user_profile_subscribe_widget !== undefined);
user_profile_subscribe_widget.render();
- const $subscribe_button = $("#user-profile-modal .add-subscription-button");
- ui_util.enable_element_and_remove_tooltip($subscribe_button);
+ $("#user-profile-modal .add-subscription-button").prop("disabled", false);
}
function reset_subscribe_widget(): void {
- ui_util.disable_element_and_add_tooltip(
- $("#user-profile-modal .add-subscription-button"),
- $t({defaultMessage: "Select a channel to subscribe"}),
- );
+ $("#user-profile-modal .add-subscription-button").prop("disabled", true);
$("#user_profile_subscribe_widget .dropdown_widget_value").text(
$t({defaultMessage: "Select a channel"}),
);