discourse/app/assets/javascripts/admin/routes/admin-users-list.js.es6
2014-12-12 21:19:57 +05:30

15 lines
343 B
JavaScript

import { outputExportResult } from 'admin/lib/export-result';
export default Discourse.Route.extend({
actions: {
exportUsers: function() {
Discourse.ExportCsv.exportUserList().then(outputExportResult);
},
deleteUser: function(user) {
Discourse.AdminUser.create(user).destroy({ deletePosts: true });
}
}
});