瀏覽代碼

AMBARI-1092. dashboard > Summary > capacity pie chart keeps changing colors. (Srimanth Gunturi via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431659 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父節點
當前提交
1f1fcf77d4
共有 3 個文件被更改,包括 5 次插入2 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/views/common/chart/pie.js
  3. 1 1
      ambari-web/app/views/wizard/step9_view.js

+ 3 - 0
CHANGES.txt

@@ -654,6 +654,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1092. dashboard > Summary > capacity pie chart keeps changing colors.
+  (Srimanth Gunturi via yusaku)
+
   AMBARI-1091. 2 parallel requests for service information resulting in JS
   exception. (Srimanth Gunturi via yusaku)
 

+ 1 - 1
ambari-web/app/views/common/chart/pie.js

@@ -63,7 +63,7 @@ App.ChartPieView = Em.View.extend({
       .data(thisChart.donut(thisChart.get('data')))
       .enter().append("svg:path")
       .attr("fill", function (d, i) {
-        return thisChart.palette.color();
+        return thisChart.palette.color(i);
       })
       .attr("d", this.get('arc')));
   }

+ 1 - 1
ambari-web/app/views/wizard/step9_view.js

@@ -218,7 +218,7 @@ App.HostStatusView = Em.View.extend({
             Ember.Object.create({value: 'failed', label: 'Failed' }),
             Ember.Object.create({value: 'completed', label: 'Success' }),
             Ember.Object.create({value: 'aborted', label: 'Cancelled' }),
-            Ember.Object.create({value: 'timed_out', label: 'Timed Out' })
+            Ember.Object.create({value: 'timedout', label: 'Timed Out' })
           ],
 
         category: null,