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.

compose_typeahead: Add hint text to topic typeahead dropdown.

Joelute4d55192e21a2
diff --git a/web/src/composebox_typeahead.js b/web/src/composebox_typeahead.js
index f38eab526b5..7e83b123207 100644
--- a/web/src/composebox_typeahead.js
+++ b/web/src/composebox_typeahead.js
@@ -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({
diff --git a/web/templates/topic_typeahead_hint.hbs b/web/templates/topic_typeahead_hint.hbs
new file mode 100644
index 00000000000..73d1734082c
--- /dev/null
+++ b/web/templates/topic_typeahead_hint.hbs
@@ -0,0 +1 @@
+<em>{{t 'Start a new topic or select one from the list.' }}</em>