mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 21:58:34 +08:00
17 lines
359 B
JavaScript
17 lines
359 B
JavaScript
export default Ember.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);
|
|
}
|
|
}
|
|
});
|