2016-01-18 18:57:55 -05:00
|
|
|
import AdminEmailLogsController from 'admin/controllers/admin-email-logs';
|
2015-08-10 17:11:27 -04:00
|
|
|
import debounce from 'discourse/lib/debounce';
|
2016-01-18 18:57:55 -05:00
|
|
|
import EmailLog from 'admin/models/email-log';
|
2014-07-22 23:20:45 -04:00
|
|
|
|
2016-01-18 18:57:55 -05:00
|
|
|
export default AdminEmailLogsController.extend({
|
2015-08-10 17:11:27 -04:00
|
|
|
filterEmailLogs: debounce(function() {
|
2015-11-20 20:27:06 -05:00
|
|
|
EmailLog.findAll(this.get("filter")).then(logs => this.set("model", logs));
|
2016-01-18 18:57:55 -05:00
|
|
|
}, 250).observes("filter.{user,address,type,skipped_reason}")
|
2014-07-22 23:20:45 -04:00
|
|
|
});
|