mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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);
|
user.set('can_approve', false);
|
||||||
return user.set('selected', false);
|
return user.set('selected', false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bootbox.alert(Em.String.i18n("admin.user.approve_bulk_success"));
|
||||||
|
|
||||||
return Discourse.ajax("/admin/users/approve-bulk", {
|
return Discourse.ajax("/admin/users/approve-bulk", {
|
||||||
type: 'PUT',
|
type: 'PUT',
|
||||||
data: {
|
data: {
|
||||||
|
@ -59,11 +59,15 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
{{#if can_approve}}
|
{{#if approved}}
|
||||||
<button class='btn' {{action approve target="content"}}>
|
{{i18n admin.user.approve_success}}
|
||||||
<i class='icon icon-ok'></i>
|
{{else}}
|
||||||
{{i18n admin.user.approve}}
|
{{#if can_approve}}
|
||||||
</button>
|
<button class='btn' {{action approve target="content"}}>
|
||||||
|
<i class='icon icon-ok'></i>
|
||||||
|
{{i18n admin.user.approve}}
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1131,6 +1131,10 @@ en:
|
|||||||
flags_received_count: Flags Received
|
flags_received_count: Flags Received
|
||||||
approve: 'Approve'
|
approve: 'Approve'
|
||||||
approved_by: "approved by"
|
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"
|
time_read: "Read Time"
|
||||||
delete: "Delete User"
|
delete: "Delete User"
|
||||||
delete_forbidden: "This user can't be deleted because there are posts. Delete all this user's posts first."
|
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