mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
Merge pull request #3014 from techAPJ/patch-3
FIX: exportUsers action was deleted, so user export was failing
This commit is contained in:
commit
45820e9c4c
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 New Issue
Block a user