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