2019-10-22 09:46:10 -04:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2016-01-18 18:57:55 -05:00
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
|
|
|
|
2019-10-22 09:46:10 -04:00
|
|
|
export default DiscourseRoute.extend({
|
2016-01-18 18:57:55 -05:00
|
|
|
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);
|
2020-10-09 14:53:40 -04:00
|
|
|
controller.set("filter.status", this.status);
|
2016-01-18 18:57:55 -05:00
|
|
|
},
|
|
|
|
});
|