2014-08-13 07:04:36 +08:00
|
|
|
import DiscourseController from 'discourse/controllers/controller';
|
2015-08-11 05:11:27 +08:00
|
|
|
import debounce from 'discourse/lib/debounce';
|
2014-07-23 11:20:45 +08:00
|
|
|
|
2014-08-13 07:04:36 +08:00
|
|
|
export default DiscourseController.extend({
|
2014-07-23 11:20:45 +08:00
|
|
|
|
2015-08-11 05:11:27 +08:00
|
|
|
filterEmailLogs: debounce(function() {
|
2014-07-23 11:20:45 +08:00
|
|
|
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.reply_key")
|
|
|
|
});
|