2014-12-22 11:17:04 -05:00
|
|
|
import { outputExportResult } from 'discourse/lib/export-result';
|
2014-12-12 10:49:57 -05:00
|
|
|
|
2014-12-02 05:35:43 -05:00
|
|
|
export default Discourse.Route.extend({
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
exportUsers: function() {
|
2014-12-12 10:49:57 -05:00
|
|
|
Discourse.ExportCsv.exportUserList().then(outputExportResult);
|
2014-12-03 10:03:42 -05:00
|
|
|
},
|
|
|
|
|
2015-02-17 03:03:43 -05:00
|
|
|
sendInvites: function() {
|
|
|
|
this.transitionTo('user.invited', Discourse.User.current());
|
|
|
|
},
|
|
|
|
|
2014-12-03 10:03:42 -05:00
|
|
|
deleteUser: function(user) {
|
|
|
|
Discourse.AdminUser.create(user).destroy({ deletePosts: true });
|
2014-12-02 05:35:43 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|