discourse/app/assets/javascripts/admin/controllers/admin-email-skipped.js.es6
2014-08-13 10:22:47 -04:00

10 lines
393 B
JavaScript

import DiscourseController from 'discourse/controllers/controller';
export default DiscourseController.extend({
filterEmailLogs: Discourse.debounce(function() {
var self = this;
Discourse.EmailLog.findAll(this.get("filter")).then(function(logs) {
self.set("model", logs);
});
}, 250).observes("filter.user", "filter.address", "filter.type", "filter.skipped_reason")
});