Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Style cannot view stream similar to disabled state.
Aman Agrawalff19dda71cc5
diff --git a/web/src/dropdown_widget.js b/web/src/dropdown_widget.jsindex 39e565916b9..d100b767a91 100644--- a/web/src/dropdown_widget.js+++ b/web/src/dropdown_widget.js@@ -1,6 +1,7 @@import $ from "jquery";import * as tippy from "tippy.js";+import render_dropdown_current_value_not_in_options from "../templates/dropdown_current_value_not_in_options.hbs";import render_dropdown_disabled_state from "../templates/dropdown_disabled_state.hbs";import render_dropdown_list from "../templates/dropdown_list.hbs";import render_dropdown_list_container from "../templates/dropdown_list_container.hbs";@@ -311,7 +312,11 @@ export class DropdownWidget {// If provided, show custom text if cannot find current option.if (!option && this.text_if_current_value_not_in_options) {- $(this.widget_value_selector).text(this.text_if_current_value_not_in_options);+ $(this.widget_value_selector).html(+ render_dropdown_current_value_not_in_options({+ name: this.text_if_current_value_not_in_options,+ }),+ );return;}diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex f79932c6162..b30016ee3db 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -1123,6 +1123,7 @@ div.overlay {}}+.dropdown-current-value-not-in-options,.setting-disabled-option {color: hsl(38deg 46% 54%);diff --git a/web/templates/dropdown_current_value_not_in_options.hbs b/web/templates/dropdown_current_value_not_in_options.hbsnew file mode 100644index 00000000000..3fb4ab69578--- /dev/null+++ b/web/templates/dropdown_current_value_not_in_options.hbs@@ -0,0 +1 @@+<span class="dropdown-current-value-not-in-options">{{name}}</span>