mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit updates the remove and unsubscribe buttons in the user profile modal to use the action button component. Fixes part of #33027.
22 lines
1.4 KiB
Handlebars
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>
|