Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Add 'no_items_text' to required dropdown widgets.
sandeepd01ff0cae8e3
diff --git a/web/src/channel_folders_ui.ts b/web/src/channel_folders_ui.tsindex 4c75fe07f05..2a1f26603a0 100644--- a/web/src/channel_folders_ui.ts+++ b/web/src/channel_folders_ui.ts@@ -336,6 +336,7 @@ function render_add_channel_folder_widget(): void {item_click_callback: channel_dropdown_item_click_callback,$events_container: $("#edit_channel_folder"),unique_id_type: "number",+ no_items_text: $t({defaultMessage: "No channels to add"}),};add_channel_folder_widget = new dropdown_widget.DropdownWidget(opts);add_channel_folder_widget.setup();diff --git a/web/src/saved_snippets_ui.ts b/web/src/saved_snippets_ui.tsindex b441f880c5d..f6f6bb1f231 100644--- a/web/src/saved_snippets_ui.ts+++ b/web/src/saved_snippets_ui.ts@@ -223,6 +223,7 @@ export function setup_saved_snippets_dropdown_widget(widget_selector: string): vsticky_bottom_option: $t({defaultMessage: "Create a new saved snippet",}),+ no_items_text: $t({defaultMessage: "No saved snippets"}),on_show_callback(dropdown: tippy.Instance) {saved_snippets_dropdown = dropdown;},diff --git a/web/src/settings_notifications.ts b/web/src/settings_notifications.tsindex d04672c33b0..2b7ff97e447 100644--- a/web/src/settings_notifications.ts+++ b/web/src/settings_notifications.ts@@ -288,6 +288,7 @@ function render_customize_stream_notifications_widget(): void {item_click_callback: change_state_of_customize_stream_notifications_widget,$events_container: $("#user-notification-settings .notification-settings-form"),unique_id_type: "number",+ no_items_text: $t({defaultMessage: "No channels to customize"}),});customize_stream_notifications_widget.setup();}