mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 17:23:44 +08:00
be354e7950
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
14 lines
423 B
JavaScript
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);
|
|
}
|
|
}
|