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

10 lines
393 B
Plaintext
Raw Normal View History

2018-06-15 11:03:24 -04:00
import AdminEmailLogsController from "admin/controllers/admin-email-logs";
import debounce from "discourse/lib/debounce";
import EmailLog from "admin/models/email-log";
export default AdminEmailLogsController.extend({
2015-08-10 17:11:27 -04:00
filterEmailLogs: debounce(function() {
EmailLog.findAll(this.get("filter")).then(logs => this.set("model", logs));
}, 250).observes("filter.{user,address,type}")
});