mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Notify admin of successful user approval
This commit is contained in:
parent
f6ce985121
commit
d50a598e62
@ -228,6 +228,9 @@ Discourse.AdminUser.reopenClass({
|
||||
user.set('can_approve', false);
|
||||
return user.set('selected', false);
|
||||
});
|
||||
|
||||
bootbox.alert(Em.String.i18n("admin.user.approve_bulk_success"));
|
||||
|
||||
return Discourse.ajax("/admin/users/approve-bulk", {
|
||||
type: 'PUT',
|
||||
data: {
|
||||
|
@ -59,11 +59,15 @@
|
||||
|
||||
</div>
|
||||
<div class='controls'>
|
||||
{{#if can_approve}}
|
||||
<button class='btn' {{action approve target="content"}}>
|
||||
<i class='icon icon-ok'></i>
|
||||
{{i18n admin.user.approve}}
|
||||
</button>
|
||||
{{#if approved}}
|
||||
{{i18n admin.user.approve_success}}
|
||||
{{else}}
|
||||
{{#if can_approve}}
|
||||
<button class='btn' {{action approve target="content"}}>
|
||||
<i class='icon icon-ok'></i>
|
||||
{{i18n admin.user.approve}}
|
||||
</button>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1131,6 +1131,10 @@ en:
|
||||
flags_received_count: Flags Received
|
||||
approve: 'Approve'
|
||||
approved_by: "approved by"
|
||||
approve_success: "User approved and email sent with activation
|
||||
instructions."
|
||||
approve_bulk_success: "Success! All selected users have been approved
|
||||
and notified."
|
||||
time_read: "Read Time"
|
||||
delete: "Delete User"
|
||||
delete_forbidden: "This user can't be deleted because there are posts. Delete all this user's posts first."
|
||||
|
Loading…
Reference in New Issue
Block a user