ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject git commit: AMBARI-7108. JS error after stop all services from Dashboard page. (onechiporenko)
Date Tue, 02 Sep 2014 11:18:31 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 4a0a0edf6 -> b6abb3d19


AMBARI-7108. JS error after stop all services from Dashboard page. (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b6abb3d1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b6abb3d1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b6abb3d1

Branch: refs/heads/trunk
Commit: b6abb3d19ab0b305fd3a4b501618de5c275a0d18
Parents: 4a0a0ed
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Tue Sep 2 14:13:59 2014 +0300
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Tue Sep 2 14:13:59 2014 +0300

----------------------------------------------------------------------
 .../app/views/main/dashboard/widgets/pie_chart_widget.js      | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b6abb3d1/ambari-web/app/views/main/dashboard/widgets/pie_chart_widget.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/widgets/pie_chart_widget.js b/ambari-web/app/views/main/dashboard/widgets/pie_chart_widget.js
index 2ad9444..4b5f338 100644
--- a/ambari-web/app/views/main/dashboard/widgets/pie_chart_widget.js
+++ b/ambari-web/app/views/main/dashboard/widgets/pie_chart_widget.js
@@ -68,8 +68,11 @@ App.PieChartDashboardWidgetView = App.DashboardWidgetView.extend({
 
   calc: function() {
     this.set('hiddenInfo', this.calcHiddenInfo());
-    this.set('isPieExist', this.calcIsPieExists());
-    this.set('dataForPieChart', this.calcDataForPieChart());
+    var isPieExists = this.calcIsPieExists();
+    this.set('isPieExist', isPieExists);
+    if (isPieExists) {
+      this.set('dataForPieChart', this.calcDataForPieChart());
+    }
   },
 
   didInsertElement: function() {


Mime
View raw message