Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Remove Unset and Disable buttons when no permissions.

alguimo8ae6e1b7188c
diff --git a/static/js/settings_org.js b/static/js/settings_org.js
index a1f87edc462..b05b8e65cdd 100644
--- a/static/js/settings_org.js
+++ b/static/js/settings_org.js
@@ -58,6 +58,10 @@ export function maybe_disable_widgets() {
.find("input, textarea, button, select")
.prop("disabled", true);
+ $(".organization-box [data-name='organization-settings']")
+ .find(".dropdown_list_reset_button")
+ .hide();
+
$(".organization-box [data-name='organization-settings']")
.find(".control-label-disabled")
.addClass("enabled");