compose: Add privacy icons to the stream dropdown menu.

These were previously used in the input form field and
this commit removes the code that supported that and
replaces it by using existing dropdown_widget functionality
to display the icons in the compose dropdown.
This commit is contained in:
evykassirer
2023-02-06 16:25:45 -08:00
committed by Tim Abbott
parent 8a2455a294
commit 02ae5818ae
5 changed files with 7 additions and 47 deletions

View File

@@ -360,7 +360,7 @@ export function build_move_topic_to_stream_popover(
$stream_header_colorblock = $("#dialog_widget_modal .topic_stream_edit_header").find(
".stream_header_colorblock",
);
stream_bar.decorate(current_stream_name, $stream_header_colorblock, false);
stream_bar.decorate(current_stream_name, $stream_header_colorblock);
const streams_list =
message_edit.get_available_streams_for_moving_messages(current_stream_id);
const opts = {
@@ -418,7 +418,7 @@ export function register_click_handlers() {
Number.parseInt(stream_widget.value(), 10),
);
stream_bar.decorate(stream_name, $stream_header_colorblock, false);
stream_bar.decorate(stream_name, $stream_header_colorblock);
});
register_stream_handlers();