mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 11:56:41 +08:00
Merge pull request #3208 from techAPJ/patch-1
UX: add user invite link on admin interface
This commit is contained in:
commit
3ace001971
@ -7,6 +7,10 @@ export default Discourse.Route.extend({
|
|||||||
Discourse.ExportCsv.exportUserList().then(outputExportResult);
|
Discourse.ExportCsv.exportUserList().then(outputExportResult);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
sendInvites: function() {
|
||||||
|
this.transitionTo('user.invited', Discourse.User.current());
|
||||||
|
},
|
||||||
|
|
||||||
deleteUser: function(user) {
|
deleteUser: function(user) {
|
||||||
Discourse.AdminUser.create(user).destroy({ deletePosts: true });
|
Discourse.AdminUser.create(user).destroy({ deletePosts: true });
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right">
|
<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"}}
|
{{d-button action="exportUsers" title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1741,6 +1741,10 @@ en:
|
|||||||
screened_ip: "Export full screened IP list in CSV format."
|
screened_ip: "Export full screened IP list in CSV format."
|
||||||
screened_url: "Export full screened URL list in CSV format."
|
screened_url: "Export full screened URL list in CSV format."
|
||||||
|
|
||||||
|
invite:
|
||||||
|
button_text: "Send Invites"
|
||||||
|
button_title: "Send Invites"
|
||||||
|
|
||||||
customize:
|
customize:
|
||||||
title: "Customize"
|
title: "Customize"
|
||||||
long_title: "Site Customizations"
|
long_title: "Site Customizations"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user