From 094c3da965e1fc730d9bf91e1d6fe5375f1ea08f Mon Sep 17 00:00:00 2001 From: Satyam Bansal Date: Fri, 19 May 2023 23:35:17 +0530 Subject: [PATCH] stream_settings: Fix disabled subscribe button tooltip. Previously, hovering over the disabled subscribe button would not display any tooltip due to an undefined object being passed to the function that created the tooltip. --- web/src/stream_ui_updates.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/stream_ui_updates.js b/web/src/stream_ui_updates.js index 544be6aaee..faad1eed1a 100644 --- a/web/src/stream_ui_updates.js +++ b/web/src/stream_ui_updates.js @@ -44,9 +44,7 @@ export function initialize_disable_btn_hint_popover( } export function initialize_cant_subscribe_popover(sub) { - const $button_wrapper = stream_settings_containers - .get_edit_container(sub) - .find(".sub_unsub_button_wrapper"); + const $button_wrapper = $(".settings .stream_settings_header .sub_unsub_button_wrapper"); const $settings_button = stream_settings_ui.settings_button_for_sub(sub); initialize_disable_btn_hint_popover( $button_wrapper,