mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
gear-menu: Re-add the organization settings link.
This re-adds the organization settings link and toggles the text dependent on whether the user is an administrator or not. Fixes: #4201.
This commit is contained in:
committed by
Tim Abbott
parent
1f8d9a46f0
commit
d74f72f08f
@@ -9,9 +9,9 @@ var all_streams = [];
|
||||
exports.show_or_hide_menu_item = function () {
|
||||
var item = $('.admin-menu-item').expectOne();
|
||||
if (page_params.is_admin) {
|
||||
item.show();
|
||||
item.find("span").text(i18n.t("Manage organization"));
|
||||
} else {
|
||||
item.hide();
|
||||
item.find("span").text(i18n.t("Organization settings"));
|
||||
$(".organization-box [data-name='organization-settings']")
|
||||
.find("input, button, select").attr("disabled", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user