mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 20:51:10 +00:00
300a52f5ae
ui: UI Release Merge (1.8-beta-3: ui-staging merge)
21 lines
403 B
JavaScript
21 lines
403 B
JavaScript
import Route from '@ember/routing/route';
|
|
|
|
export default Route.extend({
|
|
queryParams: {
|
|
search: {
|
|
as: 'filter',
|
|
replace: true,
|
|
},
|
|
},
|
|
model: function() {
|
|
const parent = this.routeName
|
|
.split('.')
|
|
.slice(0, -1)
|
|
.join('.');
|
|
return this.modelFor(parent);
|
|
},
|
|
setupController: function(controller, model) {
|
|
controller.setProperties(model);
|
|
},
|
|
});
|