mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
settings: Eliminate admin_sections module.
We move all of its logic into settings_sections. Note that this is slightly more than a refactor. We are slightly more aggressive about resetting sections. For example, if you go into Settings, then exit the overlay, then go into Manage Organization, we will now reset sections for both groups.
This commit is contained in:
@@ -69,16 +69,13 @@ exports.build_page = function () {
|
||||
$("#id_realm_email_address_visibility").val(page_params.realm_email_address_visibility);
|
||||
|
||||
$("#id_realm_default_language").val(page_params.realm_default_language);
|
||||
|
||||
// Since we just swapped in a whole new page, we need to
|
||||
// tell admin_sections nothing is loaded.
|
||||
admin_sections.reset_sections();
|
||||
};
|
||||
|
||||
|
||||
exports.launch = function (section) {
|
||||
settings.build_page();
|
||||
exports.build_page();
|
||||
settings_sections.reset_sections();
|
||||
|
||||
overlays.open_settings();
|
||||
settings_panel_menu.org_settings.activate_section(section);
|
||||
|
||||
Reference in New Issue
Block a user