discourse/app/assets/javascripts/admin/controllers/admin-email-skipped.js.es6

10 lines
408 B
Plaintext
Raw Normal View History

2016-04-01 05:33:25 +08:00
import AdminEmailLogsController from 'admin/controllers/admin-email-logs';
2015-08-11 05:11:27 +08:00
import debounce from 'discourse/lib/debounce';
2016-04-01 05:33:25 +08:00
import EmailLog from 'admin/models/email-log';
2016-04-01 05:33:25 +08:00
export default AdminEmailLogsController.extend({
2015-08-11 05:11:27 +08:00
filterEmailLogs: debounce(function() {
2016-04-01 05:33:25 +08:00
EmailLog.findAll(this.get("filter")).then(logs => this.set("model", logs));
}, 250).observes("filter.{user,address,type,skipped_reason}")
});