mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 15:35:12 +08:00
18 lines
502 B
Plaintext
18 lines
502 B
Plaintext
|
/**
|
||
|
This controller supports email logs functionality.
|
||
|
|
||
|
@class AdminEmailSkippedController
|
||
|
@extends Discourse.Controller
|
||
|
@namespace Discourse
|
||
|
@module Discourse
|
||
|
**/
|
||
|
export default Discourse.Controller.extend({
|
||
|
|
||
|
filterEmailLogs: Discourse.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")
|
||
|
});
|