discourse/app/assets/javascripts/admin/routes/admin-logs.js.es6
2014-11-22 00:59:48 +05:30

15 lines
367 B
JavaScript

export default Discourse.Route.extend({
actions: {
exportScreenedIps: function() {
Discourse.ExportCsv.exportScreenedIpsList().then(function(result) {
if (result.success) {
bootbox.alert(I18n.t("admin.export_csv.success"));
} else {
bootbox.alert(I18n.t("admin.export_csv.failed"));
}
});
}
}
});