mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:02:24 +08:00
18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
import Controller from "@ember/controller";
|
|
export default Controller.extend({
|
|
emailTemplates: null,
|
|
sortedTemplates: Ember.computed.sort("emailTemplates", "titleSorting"),
|
|
|
|
init() {
|
|
this._super(...arguments);
|
|
|
|
this.titleSorting = ["title"];
|
|
},
|
|
|
|
actions: {
|
|
selectTemplate(template) {
|
|
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
|
|
}
|
|
}
|
|
});
|