mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
compose: Change stream field in composebox to be a dropdown.
Fixes #11832 This lets the user see more options than the three that appear in the typeahead menu, and prevents them from inputting invalid stream names. This change replaces the input field with the dropdown, and updates everything that referred to the classnames of the old input field, so that they now get the data they need from the new dropdown.
This commit is contained in:
@@ -7,12 +7,6 @@ const {run_test} = require("./lib/test");
|
||||
|
||||
mock_jquery((selector) => {
|
||||
switch (selector) {
|
||||
case "#stream_message_recipient_stream":
|
||||
return {
|
||||
val() {
|
||||
return "social";
|
||||
},
|
||||
};
|
||||
case "#stream_message_recipient_topic":
|
||||
return {
|
||||
val() {
|
||||
@@ -29,8 +23,15 @@ const stream_data = zrequire("stream_data");
|
||||
const peer_data = zrequire("peer_data");
|
||||
const people = zrequire("people");
|
||||
const compose_fade = zrequire("compose_fade");
|
||||
const compose_ui = zrequire("compose_ui");
|
||||
const compose_fade_helper = zrequire("compose_fade_helper");
|
||||
|
||||
compose_ui.compose_stream_widget = {
|
||||
value() {
|
||||
return "social";
|
||||
},
|
||||
};
|
||||
|
||||
const me = {
|
||||
email: "me@example.com",
|
||||
user_id: 30,
|
||||
|
||||
Reference in New Issue
Block a user