2018-06-15 11:03:24 -04:00
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
2016-01-18 18:57:55 -05:00
|
|
|
|
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model() {
|
2019-05-27 04:15:39 -04:00
|
|
|
return IncomingEmail.findAll({ status: this.status });
|
2016-01-18 18:57:55 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.set("model", model);
|
2019-05-27 04:15:39 -04:00
|
|
|
controller.set("filter", { status: this.status });
|
2016-01-18 18:57:55 -05:00
|
|
|
}
|
|
|
|
});
|