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

10 lines
393 B
Plaintext
Raw Normal View History

2018-07-24 13:43:52 +08:00
import AdminEmailLogsController from "admin/controllers/admin-email-logs";
import debounce from "discourse/lib/debounce";
import EmailLog from "admin/models/email-log";
2016-05-03 05:15:32 +08:00
export default AdminEmailLogsController.extend({
filterEmailLogs: debounce(function() {
2018-07-24 13:43:52 +08:00
EmailLog.findAll(this.get("filter")).then(logs => this.set("model", logs));
}, 250).observes("filter.{user,address,type}")
2016-05-03 05:15:32 +08:00
});