subscribers: Rename file to stream_edit_subscribers.js.

We are going to move to this code organization for
managing streams:

    stream_create.js
        stream_create_subscribers.js
    stream_edit.js
        stream_edit_subscribers.js

The modules stream_create.js and stream_edit.js historically
manage the entire process of creating and editing stream
data (respectively).

Going forward both will delegate most of the subscriber-specific
pieces to either stream_create_subscribers or stream_edit_subscribers.

The stream_*_subscribers modules will be somewhat similar in
nature, but the way that we manage subscribers at creation time
is a bit different than how we manage subscribers at edit time.
This commit is contained in:
Steve Howell 2022-02-21 17:42:35 +00:00 committed by Tim Abbott
parent 22660a78c7
commit ca17a452fd
5 changed files with 9 additions and 9 deletions

View File

@ -20,10 +20,10 @@ import * as settings_config from "./settings_config";
import * as settings_ui from "./settings_ui";
import * as stream_color from "./stream_color";
import * as stream_data from "./stream_data";
import * as stream_edit_subscribers from "./stream_edit_subscribers";
import * as stream_settings_containers from "./stream_settings_containers";
import * as stream_settings_data from "./stream_settings_data";
import * as stream_settings_ui from "./stream_settings_ui";
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";
@ -188,7 +188,7 @@ function show_subscription_settings(sub) {
}
const subscriber_container = edit_container.find(".edit_subscribers_for_stream");
stream_subscribers_ui.enable_subscriber_management({
stream_edit_subscribers.enable_subscriber_management({
sub,
parent_container: subscriber_container,
});

View File

@ -29,10 +29,10 @@ import * as settings_data from "./settings_data";
import * as stream_create from "./stream_create";
import * as stream_data from "./stream_data";
import * as stream_edit from "./stream_edit";
import * as stream_edit_subscribers from "./stream_edit_subscribers";
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";
@ -244,7 +244,7 @@ export function set_color(stream_id, color) {
export function update_subscribers_ui(sub) {
update_left_panel_row(sub);
stream_subscribers_ui.update_subscribers_list(sub);
stream_edit_subscribers.update_subscribers_list(sub);
message_view_header.maybe_rerender_title_area_for_stream(sub);
}
@ -315,7 +315,7 @@ export function update_settings_for_subscribed(slim_sub) {
add_sub_to_table(sub);
}
stream_subscribers_ui.update_subscribers_list(sub);
stream_edit_subscribers.update_subscribers_list(sub);
// Display the swatch and subscription stream_settings
stream_ui_updates.update_regular_sub_settings(sub);
@ -333,7 +333,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_subscribers_ui.update_subscribers_list(sub);
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);

View File

@ -85,9 +85,9 @@ import * as starred_messages from "./starred_messages";
import * as stream_bar from "./stream_bar";
import * as stream_data from "./stream_data";
import * as stream_edit from "./stream_edit";
import * as stream_edit_subscribers from "./stream_edit_subscribers";
import * as stream_list from "./stream_list";
import * as stream_settings_ui from "./stream_settings_ui";
import * as stream_subscribers_ui from "./stream_subscribers_ui";
import * as timerender from "./timerender";
import * as tippyjs from "./tippyjs";
import * as topic_list from "./topic_list";
@ -609,7 +609,7 @@ export function initialize_everything() {
initialize_kitchen_sink_stuff();
echo.initialize();
stream_edit.initialize();
stream_subscribers_ui.initialize();
stream_edit_subscribers.initialize();
stream_data.initialize(stream_data_params);
pm_conversations.recent.initialize(pm_conversations_params);
muted_topics.initialize();

View File

@ -168,12 +168,12 @@ EXEMPT_FILES = make_set(
"static/js/stream_color.js",
"static/js/stream_create.js",
"static/js/stream_edit.js",
"static/js/stream_edit_subscribers.js",
"static/js/stream_list.js",
"static/js/stream_muting.js",
"static/js/stream_popover.js",
"static/js/stream_settings_containers.js",
"static/js/stream_settings_ui.js",
"static/js/stream_subscribers_ui.js",
"static/js/stream_ui_updates.js",
"static/js/submessage.js",
"static/js/subscriber_api.js",