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

18 lines
337 B
Plaintext
Raw Normal View History

export default Ember.Route.extend({
queryParams: {
q: { replace: true },
overridden: { replace: true }
},
model(params) {
2018-06-15 23:03:24 +08:00
return this.store.find(
"site-text",
Ember.getProperties(params, "q", "overridden")
);
},
setupController(controller, model) {
2018-06-15 23:03:24 +08:00
controller.set("siteTexts", model);
}
});