mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
5c899c765b
This reverts commit c21457d6a7
.
13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
import debounce from 'discourse/lib/debounce';
|
|
import EmailLog from 'admin/models/email-log';
|
|
|
|
export default Ember.Controller.extend({
|
|
|
|
filterEmailLogs: debounce(function() {
|
|
var self = this;
|
|
EmailLog.findAll(this.get("filter")).then(function(logs) {
|
|
self.set("model", logs);
|
|
});
|
|
}, 250).observes("filter.user", "filter.address", "filter.type", "filter.reply_key")
|
|
});
|