mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
da04c602ba
Otherwise it can be confused with the ember debounce
16 lines
475 B
JavaScript
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);
|
|
}
|
|
}
|
|
});
|