2016-01-19 07:57:55 +08:00
|
|
|
import AdminEmailLogsController from 'admin/controllers/admin-email-logs';
|
2015-08-11 05:11:27 +08:00
|
|
|
import debounce from 'discourse/lib/debounce';
|
2015-11-21 09:27:06 +08:00
|
|
|
import EmailLog from 'admin/models/email-log';
|
2014-07-23 11:20:45 +08:00
|
|
|
|
2016-01-19 07:57:55 +08:00
|
|
|
export default AdminEmailLogsController.extend({
|
2015-08-11 05:11:27 +08:00
|
|
|
filterEmailLogs: debounce(function() {
|
2016-01-19 07:57:55 +08:00
|
|
|
EmailLog.findAll(this.get("filter")).then(logs => this.set("model", logs));
|
|
|
|
}, 250).observes("filter.{user,address,type,reply_key}")
|
2014-07-23 11:20:45 +08:00
|
|
|
});
|