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.

dropdown_widget: Allow passing is_setting_disabled in the template.

Shubham Padia17276e95a187
diff --git a/web/templates/dropdown_widget.hbs b/web/templates/dropdown_widget.hbs
index a9fbdd82f9a..d01ca1867ac 100644
--- a/web/templates/dropdown_widget.hbs
+++ b/web/templates/dropdown_widget.hbs
@@ -1,4 +1,4 @@
-<button id="{{widget_name}}_widget" class="dropdown-widget-button" type="button" {{#if disable_keyboard_focus}}tabindex="-1"{{/if}} name="{{widget_name}}">
+<button id="{{widget_name}}_widget" class="dropdown-widget-button" type="button" {{#if is_setting_disabled}}disabled{{/if}} {{#if disable_keyboard_focus}}tabindex="-1"{{/if}} name="{{widget_name}}">
<span class="dropdown_widget_value">{{#if default_text}}{{default_text}}{{/if}}</span>
<i class="zulip-icon zulip-icon-chevron-down"></i>
</button>