mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
streams: Disable sub-btn with explanation if user not allowed to subscribe.
This commit is contained in:
committed by
Tim Abbott
parent
9d21b61f99
commit
ccd3b49555
@@ -164,6 +164,9 @@ function show_subscription_settings(sub_row) {
|
||||
if (!sub.render_subscribers) {
|
||||
return;
|
||||
}
|
||||
if (!sub.should_display_subscription_button) {
|
||||
stream_ui_updates.initialize_cant_subscribe_popover(sub);
|
||||
}
|
||||
// fetch subscriber list from memory.
|
||||
var list = get_subscriber_list(sub_settings);
|
||||
list.empty();
|
||||
|
||||
Reference in New Issue
Block a user