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

14 lines
253 B
JavaScript

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