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.

channel-settings: Show loading spinner when fetching subscriber count.

Sahil Batra07c6308f0542
diff --git a/web/src/stream_edit_subscribers.ts b/web/src/stream_edit_subscribers.ts
index 4703cb6fc54..d9634bb33e1 100644
--- a/web/src/stream_edit_subscribers.ts
+++ b/web/src/stream_edit_subscribers.ts
@@ -133,8 +133,12 @@ function update_notification_choice_checkbox(added_user_count: number): void {
}
async function stream_edit_update_notification_choice(): Promise<void> {
+ loading.make_indicator($(".add-subscriber-loading-spinner"), {
+ height: 28, // 2em at 14px / 1em
+ });
const pill_count = (await add_subscribers_pill.get_pill_user_ids(pill_widget)).length;
update_notification_choice_checkbox(pill_count);
+ loading.destroy_indicator($(".add-subscriber-loading-spinner"));
}
export function enable_subscriber_management({