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

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 });
}
});