mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: exportUsers action was deleted, so user export was failing
This commit is contained in:
parent
3fcde72656
commit
2ead3fca69
1 changed files with 15 additions and 0 deletions
15
app/assets/javascripts/admin/routes/admin-users-list.js.es6
Normal file
15
app/assets/javascripts/admin/routes/admin-users-list.js.es6
Normal file
|
@ -0,0 +1,15 @@
|
|||
export default Discourse.Route.extend({
|
||||
|
||||
actions: {
|
||||
exportUsers: function() {
|
||||
Discourse.ExportCsv.exportUserList().then(function(result) {
|
||||
if (result.success) {
|
||||
bootbox.alert(I18n.t("admin.export_csv.success"));
|
||||
} else {
|
||||
bootbox.alert(I18n.t("admin.export_csv.failed"));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
});
|
Loading…
Reference in a new issue