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

10 lines
436 B
Plaintext
Raw Normal View History

2016-04-01 05:33:25 +08:00
import AdminEmailIncomingsController from 'admin/controllers/admin-email-incomings';
import debounce from 'discourse/lib/debounce';
import IncomingEmail from 'admin/models/incoming-email';
export default AdminEmailIncomingsController.extend({
filterIncomingEmails: debounce(function() {
IncomingEmail.findAll(this.get("filter")).then(incomings => this.set("model", incomings));
}, 250).observes("filter.{from,to,subject}")
});