mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
admin: Show/hide menu items after setup.
This allows disabling of UI elements in cases like the authentication methods checkboxes that are rendered during the setup method.
This commit is contained in:
@@ -62,8 +62,6 @@ function _setup_page() {
|
|||||||
exports.launch_page(tab);
|
exports.launch_page(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.show_or_hide_menu_item();
|
|
||||||
|
|
||||||
$("#id_realm_default_language").val(page_params.realm_default_language);
|
$("#id_realm_default_language").val(page_params.realm_default_language);
|
||||||
|
|
||||||
// We set this flag before we're fully loaded so that the populate
|
// We set this flag before we're fully loaded so that the populate
|
||||||
@@ -76,6 +74,9 @@ function _setup_page() {
|
|||||||
settings_streams.set_up();
|
settings_streams.set_up();
|
||||||
settings_filters.set_up();
|
settings_filters.set_up();
|
||||||
|
|
||||||
|
// Do this after calling the setup_up methods, so that we can
|
||||||
|
// disable any dynamically rendered elements.
|
||||||
|
exports.show_or_hide_menu_item();
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.launch_page = function (tab) {
|
exports.launch_page = function (tab) {
|
||||||
|
|||||||
Reference in New Issue
Block a user