Repository: ambari
Updated Branches:
  refs/heads/trunk f7a78f0e0 -> 6998f9530


AMBARI-6094. Strange behavior of 'Quick links' menu on HBase service page after 
adding second HBase master.(xiwang)


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

Branch: refs/heads/trunk
Commit: 6998f95307a57130c33a7a36ee9b5b39477f2b2a
Parents: f7a78f0
Author: Xi Wang <xiw...@apache.org>
Authored: Wed Jun 11 15:52:07 2014 -0700
Committer: Xi Wang <xiw...@apache.org>
Committed: Wed Jun 11 16:00:50 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/common/quick_view_link_view.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6998f953/ambari-web/app/views/common/quick_view_link_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/quick_view_link_view.js 
b/ambari-web/app/views/common/quick_view_link_view.js
index b1ffa07..dec05c3 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -88,7 +88,7 @@ App.QuickViewLinks = Em.View.extend({
       data: {
         clusterName: App.get('clusterName'),
         masterComponents: 
App.StackServiceComponent.find().filterProperty('isMaster', 
true).mapProperty('componentName').join(','),
-        urlParams: 
',host_components/component/metrics/hbase/master/IsActiveMaster'
+        urlParams: ',host_components/metrics/hbase/master/IsActiveMaster'
       },
       success: 'setQuickLinksSuccessCallback'
     });
@@ -141,13 +141,13 @@ App.QuickViewLinks = Em.View.extend({
         var activeMaster, standbyMasters, otherMasters;
         if (App.supports.multipleHBaseMasters) {
           activeMaster = masterComponents.filter(function (item) {
-            return 
item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains('true');
+            return 
item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('true');
           });
           standbyMasters = masterComponents.filter(function (item) {
-            return 
item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains('false');
+            return 
item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('false');
           });
           otherMasters = masterComponents.filter(function (item) {
-            return 
item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains(undefined);
+            return 
!(item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('true')
 || 
item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('false'))
 ;
           });
         }
         if (masterComponents) {
@@ -231,8 +231,8 @@ App.QuickViewLinks = Em.View.extend({
         }
         quickLinksArray.push(quickLinks);
       }, this);
-
       this.set('quickLinksArray', quickLinksArray);
+      this.set('isLoaded', true);
     }
 
   },

Reply via email to