You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/09/26 14:39:49 UTC
git commit: AMBARI-7512. Not all widgets are displayed on Dashboard
for non-HDFS cluster. (onechiporenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 2bb687ba8 -> e95ec9659
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/trunk
Commit: e95ec9659ba2196530334a5795f09f27ea91ce82
Parents: 2bb687b
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Sep 26 15:38:02 2014 +0300
Committer: Oleg Nechiporenko <on...@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]);