2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2018-06-15 11:03:24 -04:00
|
|
|
import { scrollTop } from "discourse/mixins/scroll-top";
|
2015-11-12 16:08:19 -05:00
|
|
|
|
2019-10-23 12:39:32 -04:00
|
|
|
export default Route.extend({
|
2015-11-12 16:08:19 -05:00
|
|
|
model(params) {
|
2018-06-15 11:03:24 -04:00
|
|
|
const all = this.modelFor("adminCustomizeEmailTemplates");
|
|
|
|
return all.findBy("id", params.id);
|
2015-11-12 16:08:19 -05:00
|
|
|
},
|
|
|
|
|
2015-11-27 12:51:50 -05:00
|
|
|
setupController(controller, emailTemplate) {
|
|
|
|
controller.setProperties({ emailTemplate, saved: false });
|
2015-11-12 16:08:19 -05:00
|
|
|
scrollTop();
|
|
|
|
}
|
|
|
|
});
|