Browse Source

AMBARI-1281. Heatmap does not show up if the cluster was installed by going back to a previous step from the Deploy step after an install failure. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1440741 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
c99b8ac9f0
2 changed files with 8 additions and 2 deletions
  1. 5 1
      CHANGES.txt
  2. 3 1
      ambari-web/app/controllers/main/charts/heatmap.js

+ 5 - 1
CHANGES.txt

@@ -191,7 +191,11 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
- AMBARI-1300.  Service status / host component status can get stuck in the
+ AMBARI-1281. Heatmap does not show up if the cluster was installed by going
+ back to a previous step from the Deploy step after an install failure.
+ (yusaku)
+
+ AMBARI-1300. Service status / host component status can get stuck in the
  green blinking state if stop fails - no further operation can be performed.
  (srimanth via yusaku) 
 

+ 3 - 1
ambari-web/app/controllers/main/charts/heatmap.js

@@ -19,7 +19,9 @@ var App = require('app');
 
 App.MainChartsHeatmapController = Em.Controller.extend({
   name: 'mainChartsHeatmapController',
-  cluster: App.Cluster.find(1),
+  cluster: function() {
+    return App.Cluster.find().objectAt(0);
+  }.property(''),
   allMetrics: function(){
     var metrics = [
       Em.Object.create({