Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel_folders_ui: Fix incorrect `can_manage_folder` usage.
Pratik Chanda3e11f574ea38
diff --git a/web/src/channel_folders_ui.ts b/web/src/channel_folders_ui.tsindex f7671489de9..0f053245dc7 100644--- a/web/src/channel_folders_ui.ts+++ b/web/src/channel_folders_ui.ts@@ -203,7 +203,6 @@ function format_channel_item_html(stream: StreamSubscription): string {invite_only: stream.invite_only,is_web_public: stream.is_web_public,stream_edit_url: hash_util.channels_settings_edit_url(stream, "general"),- show_remove_channel_from_folder: true,can_manage_folder: can_user_manage_folder(),});}diff --git a/web/templates/stream_list_item.hbs b/web/templates/stream_list_item.hbsindex 1e897db4707..ed7edee323f 100644--- a/web/templates/stream_list_item.hbs+++ b/web/templates/stream_list_item.hbs@@ -1,12 +1,11 @@<li class="stream-list-item" role="presentation" data-stream-id="{{stream_id}}">- <a class="stream-row {{#if can_manage_folder}}hidden-remove-button-row{{/if}}" href="{{stream_edit_url}}">+ <a class="stream-row hidden-remove-button-row" href="{{stream_edit_url}}"><span class="stream-row-content"><span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">{{> stream_privacy . }}</span><span class="stream-name">{{name}}</span></span>- {{#if can_manage_folder}}<div class="remove-button-wrapper">{{#if show_unsubscribe_button}}{{#if show_private_stream_unsub_tooltip}}@@ -17,10 +16,9 @@{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-button tippy-zulip-delayed-tooltip" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Unsubscribe") }}{{/if}}{{/if}}- {{#if show_remove_channel_from_folder}}+ {{#if can_manage_folder}}{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-button tippy-zulip-delayed-tooltip" intent="danger" aria-label=(t "Remove channel") data-tippy-content=(t "Remove channel") }}{{/if}}</div>- {{/if}}</a></li>