mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
UX: add user invite link on admin interface
This commit is contained in:
parent
73a59322d5
commit
daea3bb687
3 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,10 @@ export default Discourse.Route.extend({
|
|||
Discourse.ExportCsv.exportUserList().then(outputExportResult);
|
||||
},
|
||||
|
||||
sendInvites: function() {
|
||||
this.transitionTo('user.invited', Discourse.User.current());
|
||||
},
|
||||
|
||||
deleteUser: function(user) {
|
||||
Discourse.AdminUser.create(user).destroy({ deletePosts: true });
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
{{d-button action="sendInvites" title="admin.invite.button_title" icon="envelope" label="admin.invite.button_text"}}
|
||||
{{d-button action="exportUsers" title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1741,6 +1741,10 @@ en:
|
|||
screened_ip: "Export full screened IP list in CSV format."
|
||||
screened_url: "Export full screened URL list in CSV format."
|
||||
|
||||
invite:
|
||||
button_text: "Send Invites"
|
||||
button_title: "Send Invites"
|
||||
|
||||
customize:
|
||||
title: "Customize"
|
||||
long_title: "Site Customizations"
|
||||
|
|
Loading…
Reference in a new issue