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

Failed to ignore revisions in .git-blame-ignore-revs.

19 lines
429 B
JavaScript
Raw Normal View History

import { sort } from "@ember/object/computed";
import Controller from "@ember/controller";
export default Controller.extend({
emailTemplates: null,
sortedTemplates: sort("emailTemplates", "titleSorting"),
init() {
this._super(...arguments);
this.titleSorting = ["title"];
},
actions: {
selectTemplate(template) {
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
}
}
});