2019-10-22 21:46:10 +08:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2016-01-19 07:57:55 +08:00
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
export default class AdminEmailIncomingsRoute extends DiscourseRoute {
|
2016-01-19 07:57:55 +08:00
|
|
|
model() {
|
2019-05-27 16:15:39 +08:00
|
|
|
return IncomingEmail.findAll({ status: this.status });
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
2016-01-19 07:57:55 +08:00
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.set("model", model);
|
2020-10-10 02:53:40 +08:00
|
|
|
controller.set("filter.status", this.status);
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|