ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [29/44] git commit: AMBARI-7512. Not all widgets are displayed on Dashboard for non-HDFS cluster. (onechiporenko)
Date Fri, 26 Sep 2014 16:48:44 GMT
AMBARI-7512. Not all widgets are displayed on Dashboard for non-HDFS cluster. (onechiporenko)


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

Branch: refs/heads/branch-alerts-dev
Commit: e95ec9659ba2196530334a5795f09f27ea91ce82
Parents: 2bb687b
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Sep 26 15:38:02 2014 +0300
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Fri Sep 26 15:38:02 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/dashboard/widgets.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e95ec965/ambari-web/app/views/main/dashboard/widgets.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/widgets.js b/ambari-web/app/views/main/dashboard/widgets.js
index 374793b..60327b5 100644
--- a/ambari-web/app/views/main/dashboard/widgets.js
+++ b/ambari-web/app/views/main/dashboard/widgets.js
@@ -383,6 +383,12 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage,
{
         toDelete = self.removeWidget(toDelete, item);
       }, this);
     }
+    else {
+      var graphs = ['11', '12', '13', '14'];
+      graphs.forEach ( function (item) {
+        toDelete = self.removeWidget(toDelete, item);
+      }, this);
+    }
     if (this.get('mapreduce_model') != null) {
       var map = ['6', '7', '8', '9', '10', '16', '18'];
       var flag = self.containsWidget(toDelete, map[0]);


Mime
View raw message