2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
|
|
|
export default Controller.extend({
|
2015-11-12 16:08:19 -05:00
|
|
|
emailTemplates: null,
|
2019-05-28 06:15:12 -04:00
|
|
|
sortedTemplates: Ember.computed.sort("emailTemplates", "titleSorting"),
|
2015-11-12 16:08:19 -05:00
|
|
|
|
2019-05-28 06:15:12 -04:00
|
|
|
init() {
|
|
|
|
this._super(...arguments);
|
|
|
|
|
|
|
|
this.titleSorting = ["title"];
|
2019-08-12 04:27:25 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
selectTemplate(template) {
|
|
|
|
this.transitionToRoute("adminCustomizeEmailTemplates.edit", template);
|
|
|
|
}
|
2019-05-28 06:15:12 -04:00
|
|
|
}
|
2015-11-12 16:08:19 -05:00
|
|
|
});
|