2023-03-15 09:17:51 -04:00
|
|
|
import { action } from "@ember/object";
|
2023-10-10 14:38:59 -04:00
|
|
|
import { inject as service } from "@ember/service";
|
|
|
|
import IncomingEmail from "admin/models/incoming-email";
|
2016-01-18 18:57:55 -05:00
|
|
|
import AdminEmailIncomings from "admin/routes/admin-email-incomings";
|
2023-07-20 17:31:20 -04:00
|
|
|
import IncomingEmailModal from "../components/modal/incoming-email";
|
2016-02-01 15:41:49 -05:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
export default class AdminEmailRejectedRoute extends AdminEmailIncomings {
|
2023-07-20 17:31:20 -04:00
|
|
|
@service modal;
|
2023-03-15 09:17:51 -04:00
|
|
|
status = "rejected";
|
2016-02-01 15:41:49 -05:00
|
|
|
|
2023-03-15 09:17:51 -04:00
|
|
|
@action
|
2023-07-20 17:31:20 -04:00
|
|
|
async showIncomingEmail(id) {
|
|
|
|
const model = await IncomingEmail.find(id);
|
|
|
|
this.modal.show(IncomingEmailModal, { model });
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|