mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 11:15:49 +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);
|
|
}
|
|
}
|
|
});
|