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