From 330fa30ec10e3f1028e861db8c7817c2dc4ea855 Mon Sep 17 00:00:00 2001 From: loganhz Date: Wed, 13 Dec 2017 14:41:00 +0800 Subject: [PATCH] Fix the issue that cluster name is missing on cluster dashboard page --- app/authenticated/cluster/index/route.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/authenticated/cluster/index/route.js b/app/authenticated/cluster/index/route.js index 3ebcdb0f1..1d6e9e1f2 100644 --- a/app/authenticated/cluster/index/route.js +++ b/app/authenticated/cluster/index/route.js @@ -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, }; }); },