discourse/app/assets/javascripts/admin/controllers/admin-email-rejected.js.es6
Robin Ward da04c602ba REFACTOR: Remove debounce to discourseDebounce
Otherwise it can be confused with the ember debounce
2019-11-11 13:34:01 -05:00

16 lines
475 B
JavaScript

import AdminEmailLogsController from "admin/controllers/admin-email-logs";
import discourseDebounce from "discourse/lib/debounce";
import IncomingEmail from "admin/models/incoming-email";
export default AdminEmailLogsController.extend({
filterIncomingEmails: discourseDebounce(function() {
this.loadLogs(IncomingEmail);
}, 250).observes("filter.{status,from,to,subject,error}"),
actions: {
loadMore() {
this.loadLogs(IncomingEmail, true);
}
}
});