mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
refactor: Move update_subscribers_list.
We should be able to solve the import back to stream_edit in an upcoming commit.
This commit is contained in:
@@ -31,6 +31,7 @@ import * as stream_edit from "./stream_edit";
|
||||
import * as stream_list from "./stream_list";
|
||||
import * as stream_muting from "./stream_muting";
|
||||
import * as stream_settings_data from "./stream_settings_data";
|
||||
import * as stream_subscribers_ui from "./stream_subscribers_ui";
|
||||
import * as stream_ui_updates from "./stream_ui_updates";
|
||||
import * as sub_store from "./sub_store";
|
||||
import * as ui from "./ui";
|
||||
@@ -227,7 +228,7 @@ export function set_color(stream_id, color) {
|
||||
|
||||
export function update_subscribers_ui(sub) {
|
||||
update_left_panel_row(sub);
|
||||
stream_ui_updates.update_subscribers_list(sub);
|
||||
stream_subscribers_ui.update_subscribers_list(sub);
|
||||
message_view_header.maybe_rerender_title_area_for_stream(sub);
|
||||
}
|
||||
|
||||
@@ -299,7 +300,7 @@ export function update_settings_for_subscribed(slim_sub) {
|
||||
add_sub_to_table(sub);
|
||||
}
|
||||
|
||||
stream_ui_updates.update_subscribers_list(sub);
|
||||
stream_subscribers_ui.update_subscribers_list(sub);
|
||||
|
||||
// Display the swatch and subscription stream_settings
|
||||
stream_ui_updates.update_regular_sub_settings(sub);
|
||||
@@ -317,7 +318,7 @@ export function show_active_stream_in_left_panel() {
|
||||
export function update_settings_for_unsubscribed(slim_sub) {
|
||||
const sub = stream_settings_data.get_sub_for_settings(slim_sub);
|
||||
update_left_panel_row(sub);
|
||||
stream_ui_updates.update_subscribers_list(sub);
|
||||
stream_subscribers_ui.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);
|
||||
|
||||
Reference in New Issue
Block a user