Files
zulip/web/templates/user_stream_list_item.hbs
Sayam Samal 703acbaccc user_profile_modal: Update remove/unsubscribe buttons to action button.
This commit updates the remove and unsubscribe buttons in the user
profile modal to use the action button component.

Fixes part of #33027.
2025-04-04 12:26:36 -07:00

22 lines
1.4 KiB
Handlebars

<tr data-stream-id="{{stream_id}}">
<td class="user-profile-channel-row">
<div class="user-profile-channel-container">
<span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">
{{> stream_privacy . }}
</span>
<a class="user-profile-channel-list-item" href="{{stream_edit_url}}">{{name}}</a>
</div>
</td>
{{#if show_unsubscribe_button}}
<td class="remove_subscription">
{{#if show_private_stream_unsub_tooltip}}
{{> components/action_button label=(t "Unsubscribe") custom_classes="remove-subscription-button tippy-zulip-tooltip" attention="quiet" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Use channel settings to unsubscribe from private channels.") }}
{{else if show_last_user_in_private_stream_unsub_tooltip}}
{{> components/action_button label=(t "Unsubscribe") custom_classes="remove-subscription-button tippy-zulip-tooltip" attention="quiet" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Use channel settings to unsubscribe the last user from a private channel.") }}
{{else}}
{{> components/action_button label=(t "Unsubscribe") custom_classes="remove-subscription-button" attention="quiet" intent="danger" aria-label=(t "Unsubscribe") }}
{{/if}}
</td>
{{/if}}
</tr>