refactor: Extract stream_settings_data.

This is mostly a pure code move.

In passing I remove an unneeded call to
update_calculated_fields in the dispatch code,
plus some tests that don't need them.
This commit is contained in:
Steve Howell
2021-04-04 13:15:18 +00:00
committed by Tim Abbott
parent e7f24ac8d4
commit 4380fe4eaf
17 changed files with 246 additions and 234 deletions

View File

@@ -9,8 +9,8 @@ import {page_params} from "./page_params";
import * as settings_config from "./settings_config";
import * as settings_org from "./settings_org";
import * as settings_ui from "./settings_ui";
import * as stream_data from "./stream_data";
import * as stream_edit from "./stream_edit";
import * as stream_settings_data from "./stream_settings_data";
import * as unread_ui from "./unread_ui";
function rerender_ui() {
@@ -20,7 +20,7 @@ function rerender_ui() {
return;
}
const unmatched_streams = stream_data.get_unmatched_streams_for_notification_settings();
const unmatched_streams = stream_settings_data.get_unmatched_streams_for_notification_settings();
unmatched_streams_table.find(".stream-row").remove();