incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-2780. Tooltips for service and service summary show a different info. (Andrii Babiichuk via yusaku)
Date Wed, 31 Jul 2013 18:29:37 GMT
Updated Branches:
  refs/heads/trunk 242a0227e -> 2b09e3261


AMBARI-2780. Tooltips for service and service summary show a different info. (Andrii Babiichuk
via yusaku)


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

Branch: refs/heads/trunk
Commit: 2b09e326180c9292a0327938bd1ff1aa73ab0f4c
Parents: 242a022
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Wed Jul 31 11:29:28 2013 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Wed Jul 31 11:29:28 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2b09e326/ambari-web/app/views/main/dashboard/service.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/service.js b/ambari-web/app/views/main/dashboard/service.js
index 1753f46..e736351 100644
--- a/ambari-web/app/views/main/dashboard/service.js
+++ b/ambari-web/app/views/main/dashboard/service.js
@@ -28,13 +28,15 @@ App.MainDashboardServiceHealthView = Em.View.extend({
   tagName: 'span',
   attributeBindings:['rel', 'title','data-original-title'],
   rel: 'HealthTooltip',
-  'data-original-title': function(){
+  'data-original-title': '',
+
+  getHostComponentStatus: function(){
     var popupText = "";
     this.get("service").get("hostComponents").filterProperty('isMaster', true).forEach(function(item){
       popupText += item.get("displayName") + " " + item.get("componentTextStatus") + "<br/>";
     });
-    return popupText;
-  }.property('service.healthStatus'),
+    this.set('data-original-title',popupText);
+  }.observes('service.hostComponents.@each.workStatus'),
 
   /**
    * When set to true, extending classes should
@@ -88,6 +90,7 @@ App.MainDashboardServiceHealthView = Em.View.extend({
   }.property('service.healthStatus'),
 
   didInsertElement: function () {
+    this.getHostComponentStatus();
     $("[rel='HealthTooltip']").tooltip();
     this.doBlink(); // check for blink availability
   }


Mime
View raw message