mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:40:42 +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);
|
|
}
|
|
}
|
|
});
|