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.

stream-settings: Rename update_regular_sub_settings.

Sahil Batraa5739b33d10a
diff --git a/web/src/stream_edit.ts b/web/src/stream_edit.ts
index 8212346716f..2c17a8c7e9d 100644
--- a/web/src/stream_edit.ts
+++ b/web/src/stream_edit.ts
@@ -496,7 +496,7 @@ export function show_settings_for(node: HTMLElement): void {
stream_ui_updates.update_can_subscribe_group_label($edit_container);
stream_settings_components.set_up_folder_dropdown_widget(sub);
stream_ui_updates.set_folder_dropdown_visibility($("#stream_settings"));
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
$("#channels_overlay_container").on(
"click",
@@ -858,7 +858,7 @@ export function initialize(): void {
if (!sub.subscribed) {
open_edit_panel_for_row(util.the($stream_row));
}
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
e.preventDefault();
e.stopPropagation();
diff --git a/web/src/stream_settings_ui.ts b/web/src/stream_settings_ui.ts
index 6a46dda2b51..f48877458d9 100644
--- a/web/src/stream_settings_ui.ts
+++ b/web/src/stream_settings_ui.ts
@@ -205,7 +205,7 @@ export function update_stream_privacy(
stream_ui_updates.update_settings_button_for_sub(sub);
stream_ui_updates.update_add_subscriptions_elements(sub);
stream_ui_updates.enable_or_disable_subscribers_tab(sub);
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
stream_list.redraw_stream_privacy(sub);
const active_data = stream_settings_components.get_active_data();
@@ -443,7 +443,7 @@ export function update_settings_for_subscribed(slim_sub: StreamSubscription): vo
stream_edit_subscribers.update_subscribers_list(sub);
// Display the swatch and subscription stream_settings
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
stream_ui_updates.update_permissions_banner(sub);
// Update whether there's any streams shown or not.
@@ -476,7 +476,7 @@ export function update_settings_for_archived_and_unarchived(slim_sub: StreamSubs
stream_ui_updates.update_toggler_for_sub(sub);
stream_ui_updates.enable_or_disable_permission_settings_in_edit_panel(sub);
stream_ui_updates.update_stream_privacy_icon_in_settings(sub);
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
}
}
@@ -496,7 +496,7 @@ export function update_settings_for_unsubscribed(slim_sub: StreamSubscription):
stream_edit_subscribers.update_subscribers_list(sub);
stream_ui_updates.update_toggler_for_sub(sub);
stream_ui_updates.update_settings_button_for_sub(sub);
- stream_ui_updates.update_regular_sub_settings(sub);
+ stream_ui_updates.update_channel_email_section(sub);
stream_ui_updates.enable_or_disable_permission_settings_in_edit_panel(sub);
// If user unsubscribed from private stream then user cannot subscribe to
diff --git a/web/src/stream_ui_updates.ts b/web/src/stream_ui_updates.ts
index 4b59079a099..ec675adab22 100644
--- a/web/src/stream_ui_updates.ts
+++ b/web/src/stream_ui_updates.ts
@@ -281,7 +281,7 @@ export function update_settings_button_for_archive_and_unarchive(sub: StreamSubs
}
}
-export function update_regular_sub_settings(sub: StreamSubscription): void {
+export function update_channel_email_section(sub: StreamSubscription): void {
// These are in the right panel.
if (!hash_parser.is_editing_stream(sub.stream_id)) {
return;