mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
12 lines
355 B
JavaScript
12 lines
355 B
JavaScript
import debounce from 'discourse/lib/debounce';
|
|
|
|
export default Ember.Controller.extend({
|
|
|
|
filterEmailLogs: debounce(function() {
|
|
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")
|
|
});
|