2019-02-27 00:53:52 +08:00
|
|
|
import AdminEmailLogsController from "admin/controllers/admin-email-logs";
|
2018-06-15 23:03:24 +08:00
|
|
|
import debounce from "discourse/lib/debounce";
|
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
2016-01-19 07:57:55 +08:00
|
|
|
|
2019-02-27 00:53:52 +08:00
|
|
|
export default AdminEmailLogsController.extend({
|
2016-01-19 07:57:55 +08:00
|
|
|
filterIncomingEmails: debounce(function() {
|
2019-02-27 00:53:52 +08:00
|
|
|
this.loadLogs(IncomingEmail);
|
|
|
|
}, 250).observes("filter.{status,from,to,subject}"),
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
loadMore() {
|
|
|
|
this.loadLogs(IncomingEmail, true);
|
|
|
|
}
|
|
|
|
}
|
2016-01-19 07:57:55 +08:00
|
|
|
});
|