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