discourse/app/assets/javascripts/admin/routes/admin-site-text-index.js.es6
2018-06-15 17:03:24 +02:00

18 lines
337 B
JavaScript

export default Ember.Route.extend({
queryParams: {
q: { replace: true },
overridden: { replace: true }
},
model(params) {
return this.store.find(
"site-text",
Ember.getProperties(params, "q", "overridden")
);
},
setupController(controller, model) {
controller.set("siteTexts", model);
}
});