mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
compose_typeahead: Add hint text to topic typeahead dropdown.
With the autocomplete dropdown, some users face trouble or uncertainty while selecting topics. The autocomplete dropdown may encourage users to find and select an existing topic rather than starting a new topic. The changes adds a hint text to the topic typeahead dropdown to encourage users to either start a new topic or select an existing topic. Fixes #23295.
This commit is contained in:
@@ -2,6 +2,7 @@ import $ from "jquery";
|
||||
import _ from "lodash";
|
||||
|
||||
import * as typeahead from "../shared/src/typeahead";
|
||||
import render_topic_typeahead_hint from "../templates/topic_typeahead_hint.hbs";
|
||||
|
||||
import * as compose from "./compose";
|
||||
import * as compose_pm_pill from "./compose_pm_pill";
|
||||
@@ -1130,6 +1131,7 @@ export function initialize() {
|
||||
}
|
||||
return sorted;
|
||||
},
|
||||
header: render_topic_typeahead_hint,
|
||||
});
|
||||
|
||||
$("#private_message_recipient").typeahead({
|
||||
|
||||
1
web/templates/topic_typeahead_hint.hbs
Normal file
1
web/templates/topic_typeahead_hint.hbs
Normal file
@@ -0,0 +1 @@
|
||||
<em>{{t 'Start a new topic or select one from the list.' }}</em>
|
||||
Reference in New Issue
Block a user