mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 05:13:39 +08:00
da04c602ba
Otherwise it can be confused with the ember debounce
16 lines
469 B
JavaScript
16 lines
469 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}"),
|
|
|
|
actions: {
|
|
loadMore() {
|
|
this.loadLogs(IncomingEmail, true);
|
|
}
|
|
}
|
|
});
|