2019-02-26 11:53:52 -05:00
|
|
|
import AdminEmailLogsController from "admin/controllers/admin-email-logs";
|
2019-11-11 13:34:01 -05:00
|
|
|
import { INPUT_DELAY } from "discourse-common/config/environment";
|
2016-01-18 18:57:55 -05:00
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
2020-12-10 09:01:42 -05:00
|
|
|
import discourseDebounce from "discourse-common/lib/debounce";
|
2020-01-16 12:56:53 -05:00
|
|
|
import { observes } from "discourse-common/utils/decorators";
|
2016-01-18 18:57:55 -05:00
|
|
|
|
2019-02-26 11:53:52 -05:00
|
|
|
export default AdminEmailLogsController.extend({
|
2020-01-16 12:56:53 -05:00
|
|
|
@observes("filter.{status,from,to,subject,error}")
|
2020-12-10 09:01:42 -05:00
|
|
|
filterIncomingEmails() {
|
|
|
|
discourseDebounce(this, this.loadLogs, IncomingEmail, INPUT_DELAY);
|
|
|
|
},
|
2019-02-26 11:53:52 -05:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
loadMore() {
|
|
|
|
this.loadLogs(IncomingEmail, true);
|
|
|
|
},
|
|
|
|
},
|
2016-01-18 18:57:55 -05:00
|
|
|
});
|