mirror of https://github.com/rancher/ui.git
19 lines
400 B
JavaScript
19 lines
400 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default Route.extend({
|
|
globalStore: service(),
|
|
scope: service(),
|
|
|
|
model: function () {
|
|
return this.get('globalStore').findAll('node').then((nodes) => {
|
|
const cluster = this.modelFor('authenticated.cluster');
|
|
|
|
return {
|
|
cluster,
|
|
nodes,
|
|
};
|
|
});
|
|
},
|
|
});
|