discourse/app/assets/javascripts/admin/addon/controllers/admin-customize-email-templates.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
497 B
JavaScript
Raw Normal View History

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