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:
Sahil Batra 2023-11-28 09:24:04 +05:30 committed by Tim Abbott
parent 2968eb2b04
commit 4fc547cfdc
3 changed files with 6 additions and 0 deletions

View File

@ -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,
});
}

View File

@ -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,
});
}

View File

@ -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>