mirror of https://github.com/zulip/zulip.git
user_groups: Rename "Unsubscribe" to "Remove" in members list.
This commit renames "Unsubscribe" button in group members list to "Remove".
This commit is contained in:
parent
2968eb2b04
commit
4fc547cfdc
|
@ -33,6 +33,7 @@ function format_member_list_elem(person, user_can_remove_subscribers) {
|
|||
is_current_user: person.user_id === page_params.user_id,
|
||||
email: person.delivery_email,
|
||||
can_remove_subscribers: user_can_remove_subscribers,
|
||||
for_user_group_members: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ function format_member_list_elem(person) {
|
|||
is_current_user: person.user_id === page_params.user_id,
|
||||
email: person.delivery_email,
|
||||
can_remove_subscribers: settings_data.can_edit_user_group(current_group_id),
|
||||
for_user_group_members: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,11 @@
|
|||
<div class="subscriber_list_remove">
|
||||
<form class="remove-subscriber-form">
|
||||
<button type="submit" name="unsubscribe" class="remove-subscriber-button button small rounded btn-danger">
|
||||
{{#if for_user_group_members}}
|
||||
{{t 'Remove'}}
|
||||
{{else}}
|
||||
{{t 'Unsubscribe' }}
|
||||
{{/if}}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue