mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	dropdown_widget: Style cannot view stream similar to disabled state.
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
| import $ from "jquery"; | import $ from "jquery"; | ||||||
| import * as tippy from "tippy.js"; | 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_disabled_state from "../templates/dropdown_disabled_state.hbs"; | ||||||
| import render_dropdown_list from "../templates/dropdown_list.hbs"; | import render_dropdown_list from "../templates/dropdown_list.hbs"; | ||||||
| import render_dropdown_list_container from "../templates/dropdown_list_container.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 provided, show custom text if cannot find current option. | ||||||
|         if (!option && this.text_if_current_value_not_in_options) { |         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; |             return; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1123,6 +1123,7 @@ div.overlay { | |||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .dropdown-current-value-not-in-options, | ||||||
| .setting-disabled-option { | .setting-disabled-option { | ||||||
|     color: hsl(38deg 46% 54%); |     color: hsl(38deg 46% 54%); | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								web/templates/dropdown_current_value_not_in_options.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								web/templates/dropdown_current_value_not_in_options.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | <span class="dropdown-current-value-not-in-options">{{name}}</span> | ||||||
		Reference in New Issue
	
	Block a user