2015-07-24 11:33:53 -05:00
|
|
|
import { exportEntity } from 'discourse/lib/export-csv';
|
2014-12-22 10:17:04 -06:00
|
|
|
import { outputExportResult } from 'discourse/lib/export-result';
|
2015-11-20 19:27:06 -06:00
|
|
|
import ScreenedUrl from 'admin/models/screened-url';
|
2014-12-06 22:15:22 -06:00
|
|
|
|
2016-10-20 12:26:41 -05:00
|
|
|
export default Ember.Controller.extend({
|
2013-08-15 09:48:30 -05:00
|
|
|
loading: false,
|
|
|
|
|
2015-02-10 16:20:16 -06:00
|
|
|
show() {
|
2016-10-20 12:26:41 -05:00
|
|
|
this.set('loading', true);
|
|
|
|
ScreenedUrl.findAll().then(result => {
|
|
|
|
this.set('model', result);
|
|
|
|
this.set('loading', false);
|
2013-08-15 09:48:30 -05:00
|
|
|
});
|
2014-12-06 22:15:22 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
2015-02-10 16:20:16 -06:00
|
|
|
exportScreenedUrlList() {
|
2015-07-24 11:33:53 -05:00
|
|
|
exportEntity('screened_url').then(outputExportResult);
|
2014-12-06 22:15:22 -06:00
|
|
|
}
|
2013-08-15 09:48:30 -05:00
|
|
|
}
|
|
|
|
});
|