mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 18:50:53 +08:00
16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
import AdminEmailLogsController from "admin/controllers/admin-email-logs";
|
|
import debounce from "discourse/lib/debounce";
|
|
import IncomingEmail from "admin/models/incoming-email";
|
|
|
|
export default AdminEmailLogsController.extend({
|
|
filterIncomingEmails: debounce(function() {
|
|
this.loadLogs(IncomingEmail);
|
|
}, 250).observes("filter.{status,from,to,subject,error}"),
|
|
|
|
actions: {
|
|
loadMore() {
|
|
this.loadLogs(IncomingEmail, true);
|
|
}
|
|
}
|
|
});
|