FEATURE: export csv for all the logs

This commit is contained in:
Arpit Jalan
2014-12-07 09:45:22 +05:30
parent d2a7904bf2
commit 42cbe6ef2a
18 changed files with 206 additions and 67 deletions

View File

@ -1,12 +1,20 @@
import { outputExportResult } from 'admin/lib/export-result';
export default Ember.ArrayController.extend(Discourse.Presence, {
loading: false,
show: function() {
var self = this;
this.set('loading', true);
self.set('loading', true);
Discourse.ScreenedUrl.findAll().then(function(result) {
self.set('model', result);
self.set('loading', false);
});
},
actions: {
exportScreenedUrlList: function(subject) {
Discourse.ExportCsv.exportScreenedUrlList().then(outputExportResult);
}
}
});