mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 05:33:44 +08:00
16 lines
451 B
JavaScript
16 lines
451 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}"),
|
|
|
|
actions: {
|
|
loadMore() {
|
|
this.loadLogs(IncomingEmail, true);
|
|
}
|
|
}
|
|
});
|