mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
c21457d6a7
This reverts commit c0b277d273
.
10 lines
359 B
JavaScript
10 lines
359 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.skipped_reason")
|
|
});
|