mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-21 04:52:54 -05:00
3083657358
FEATURE: new incoming_email model FEATURE: infinite scrolling in emails admin FEATURE: new 'emails:import' rake task
9 lines
436 B
JavaScript
9 lines
436 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}")
|
|
});
|