mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +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 () {
|
exports.show_or_hide_menu_item = function () {
|
||||||
var item = $('.admin-menu-item').expectOne();
|
var item = $('.admin-menu-item').expectOne();
|
||||||
if (page_params.is_admin) {
|
if (page_params.is_admin) {
|
||||||
item.show();
|
item.find("span").text(i18n.t("Manage organization"));
|
||||||
} else {
|
} else {
|
||||||
item.hide();
|
item.find("span").text(i18n.t("Organization settings"));
|
||||||
$(".organization-box [data-name='organization-settings']")
|
$(".organization-box [data-name='organization-settings']")
|
||||||
.find("input, button, select").attr("disabled", true);
|
.find("input, button, select").attr("disabled", true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2495,10 +2495,6 @@ button.topic_edit_cancel {
|
|||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-menu-item {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* embed */
|
/* embed */
|
||||||
.message_content .message_embed {
|
.message_content .message_embed {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -61,7 +61,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li title="{{ _('Manage organization') }}" class="admin-menu-item">
|
<li title="{{ _('Manage organization') }}" class="admin-menu-item">
|
||||||
<a href="#organization" role="button">
|
<a href="#organization" role="button">
|
||||||
<i class="icon-vector-bolt"></i> {{ _('Manage organization') }}
|
<i class="icon-vector-bolt"></i>
|
||||||
|
<span>{{ _('Manage organization') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user