discourse/app/assets/javascripts/admin/addon/controllers/admin-customize-email-templates.js
David Taylor be354e7950
DEV: Update admin controllers to native class syntax (#20674)
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
2023-03-15 09:42:12 +00:00

14 lines
423 B
JavaScript

import { sort } from "@ember/object/computed";
import Controller from "@ember/controller";
import { action } from "@ember/object";
export default class AdminCustomizeEmailTemplatesController extends Controller {
titleSorting = ["title"];
@sort("emailTemplates", "titleSorting") sortedTemplates;
@action
onSelectTemplate(template) {
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
}
}