Fix the issue that cluster name is missing on cluster dashboard page

This commit is contained in:
loganhz 2017-12-13 14:41:00 +08:00
parent 0ef31c683c
commit 330fa30ec1
1 changed files with 3 additions and 1 deletions

View File

@ -7,9 +7,11 @@ export default Route.extend({
model: function() {
return this.get('clusterStore').find('node').then((nodes) => {
const cluster = this.get('scope').currentCluster;
return {
displayName: cluster.name,
nodes,
cluster: this.get('scope').currentCluster,
cluster,
};
});
},