Notify admin of successful user approval

This commit is contained in:
Chris Hunt 2013-06-05 21:18:22 -07:00
parent f6ce985121
commit d50a598e62
3 changed files with 16 additions and 5 deletions

View File

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

View File

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

View File

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