discourse/app/assets/javascripts/admin/routes/admin-site-text-edit.js
2020-03-13 17:03:08 -04:00

11 lines
256 B
JavaScript

import Route from "@ember/routing/route";
export default Route.extend({
model(params) {
return this.store.find("site-text", params.id);
},
setupController(controller, siteText) {
controller.setProperties({ siteText, saved: false });
}
});