mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +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:
13
web/tests/lib/compose.js
Normal file
13
web/tests/lib/compose.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
const $ = require("./zjquery");
|
||||
|
||||
exports.mock_stream_header_colorblock = () => {
|
||||
const $stream_selection_dropdown = $("#compose_stream_selection_dropdown");
|
||||
const $stream_header_colorblock = $(".stream_header_colorblock");
|
||||
$(".stream_header_colorblock").css = () => {};
|
||||
$stream_selection_dropdown.set_find_results(
|
||||
".stream_header_colorblock",
|
||||
$stream_header_colorblock,
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user