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.

dropdown_list_widget: Add privacy icons for stream options.

Sahil Batra66b6151f61ac
diff --git a/web/src/message_edit.js b/web/src/message_edit.js
index 950cb05b6e7..feba188a9a2 100644
--- a/web/src/message_edit.js
+++ b/web/src/message_edit.js
@@ -417,6 +417,7 @@ export function get_available_streams_for_moving_messages(current_stream_id) {
.map((stream) => ({
name: stream.name,
value: stream.stream_id.toString(),
+ stream,
}))
.sort((a, b) => {
if (a.name.toLowerCase() < b.name.toLowerCase()) {
diff --git a/web/src/settings_org.js b/web/src/settings_org.js
index 67dbfcfb935..f3615aa36b0 100644
--- a/web/src/settings_org.js
+++ b/web/src/settings_org.js
@@ -1011,6 +1011,7 @@ export function init_dropdown_widgets() {
data: streams.map((x) => ({
name: x.name,
value: x.stream_id.toString(),
+ stream: x,
})),
on_update() {
save_discard_widget_status_handler($("#org-notifications"));
diff --git a/web/templates/settings/dropdown_list.hbs b/web/templates/settings/dropdown_list.hbs
index fb04096ef92..84366b0137a 100644
--- a/web/templates/settings/dropdown_list.hbs
+++ b/web/templates/settings/dropdown_list.hbs
@@ -1,7 +1,11 @@
{{#with item}}
<li class="list_item" role="presentation" data-value="{{value}}">
<a role="menuitem" tabindex="0">
- {{name}}
+ {{#if stream}}
+ {{> ../inline_decorated_stream_name stream=stream}}
+ {{else}}
+ {{name}}
+ {{/if}}
</a>
</li>
{{/with}}