Repository: ambari
Updated Branches:
  refs/heads/trunk 9fab24e60 -> 361192e31


AMBARI-6022 JournalNode counter view broken. (atkach)


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

Branch: refs/heads/trunk
Commit: 361192e313ecb71b1c330c5265501874d7010558
Parents: 9fab24e
Author: atkach <[email protected]>
Authored: Wed Jun 4 19:54:55 2014 +0300
Committer: atkach <[email protected]>
Committed: Wed Jun 4 20:06:56 2014 +0300

----------------------------------------------------------------------
 .../app/templates/main/service/services/hdfs.hbs     |  2 +-
 ambari-web/app/views/main/service/services/hdfs.js   | 15 +++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/361192e3/ambari-web/app/templates/main/service/services/hdfs.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/services/hdfs.hbs 
b/ambari-web/app/templates/main/service/services/hdfs.hbs
index df6c36a..2ffa076 100644
--- a/ambari-web/app/templates/main/service/services/hdfs.hbs
+++ b/ambari-web/app/templates/main/service/services/hdfs.hbs
@@ -36,7 +36,7 @@
     </td>
     <td>
       <span>
-        {{#view view.journalNodesLiveTextView}}
+        {{#view App.ComponentLiveTextView 
liveComponentsBinding="view.journalNodesLive" 
totalComponentsBinding="view.journalNodesTotal"}}
           {{view.liveComponents}}/{{view.totalComponents}}
         {{/view}}
       </span>

http://git-wip-us.apache.org/repos/asf/ambari/blob/361192e3/ambari-web/app/views/main/service/services/hdfs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/services/hdfs.js 
b/ambari-web/app/views/main/service/services/hdfs.js
index 69a03d7..b9afb58 100644
--- a/ambari-web/app/views/main/service/services/hdfs.js
+++ b/ambari-web/app/views/main/service/services/hdfs.js
@@ -60,14 +60,13 @@ App.MainDashboardServiceHdfsView = 
App.MainDashboardServiceView.extend({
     return this.get('service.journalNodes.length') > 0;
   }.property('service.journalNodes.length'),
 
-  journalNodesLiveTextView: App.ComponentLiveTextView.extend({
-    liveComponents: function () {
-      return this.get('service.journalNodes').filterProperty("workStatus", 
"STARTED").get("length");
-    }.property("[email protected]"),
-    totalComponents: function () {
-      return this.get('service.journalNodes.length');
-    }.property("service.journalNodes.length")
-  }),
+  journalNodesLive: function () {
+    return this.get('service.journalNodes').filterProperty("workStatus", 
"STARTED").get("length");
+  }.property("[email protected]"),
+
+  journalNodesTotal: function () {
+    return this.get('service.journalNodes').get("length");
+  }.property("service.journalNodes.length"),
 
   dfsTotalBlocks: function(){
     return this.formatUnavailable(this.get('service.dfsTotalBlocks'));

Reply via email to