2019-10-22 21:46:10 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2018-06-15 23:03:24 +08:00
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
2016-01-19 07:57:55 +08:00
|
|
|
|
2019-10-22 21:46:10 +08:00
|
|
|
export default DiscourseRoute.extend({
|
2016-01-19 07:57:55 +08:00
|
|
|
model() {
|
2019-05-27 16:15:39 +08:00
|
|
|
return IncomingEmail.findAll({ status: this.status });
|
2016-01-19 07:57:55 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.set("model", model);
|
2019-05-27 16:15:39 +08:00
|
|
|
controller.set("filter", { status: this.status });
|
2016-01-19 07:57:55 +08:00
|
|
|
}
|
|
|
|
});
|