mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
12 lines
453 B
JavaScript
12 lines
453 B
JavaScript
import AdminEmailIncomingsController from "admin/controllers/admin-email-incomings";
|
|
import debounce from "discourse/lib/debounce";
|
|
import IncomingEmail from "admin/models/incoming-email";
|
|
|
|
export default AdminEmailIncomingsController.extend({
|
|
filterIncomingEmails: debounce(function() {
|
|
IncomingEmail.findAll(this.get("filter")).then(incomings =>
|
|
this.set("model", incomings)
|
|
);
|
|
}, 250).observes("filter.{from,to,subject,error}")
|
|
});
|