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

15 lines
319 B
Text
Raw Normal View History

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