discourse/app/assets/javascripts/admin/addon/routes/admin-site-text-edit.js

11 lines
257 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 });
},
});