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

10 lines
359 B
JavaScript

import debounce from 'discourse/lib/debounce';
export default Ember.Controller.extend({
filterEmailLogs: 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")
});