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