2023-03-15 17:42:12 +08:00
|
|
|
import { sort } from "@ember/object/computed";
|
2019-10-24 01:06:54 +08:00
|
|
|
import Controller from "@ember/controller";
|
2020-07-07 17:44:13 +08:00
|
|
|
import { action } from "@ember/object";
|
2023-07-19 03:53:23 +08:00
|
|
|
import { inject as service } from "@ember/service";
|
2019-05-28 18:15:12 +08:00
|
|
|
|
2023-03-15 17:42:12 +08:00
|
|
|
export default class AdminCustomizeEmailTemplatesController extends Controller {
|
2023-07-19 03:53:23 +08:00
|
|
|
@service router;
|
|
|
|
|
2023-03-15 17:42:12 +08:00
|
|
|
titleSorting = ["title"];
|
|
|
|
@sort("emailTemplates", "titleSorting") sortedTemplates;
|
2019-08-12 16:27:25 +08:00
|
|
|
|
2020-07-07 17:44:13 +08:00
|
|
|
@action
|
|
|
|
onSelectTemplate(template) {
|
2023-07-19 03:53:23 +08:00
|
|
|
this.router.transitionTo("adminCustomizeEmailTemplates.edit", template);
|
2023-03-15 17:42:12 +08:00
|
|
|
}
|
|
|
|
}
|