ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-6282. Incorrect hosts count for custom config group after surfing back to Step 7 of Install Wizard (Max Shepel via akovalenko)
Date Thu, 26 Jun 2014 12:39:27 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.1 76b92e824 -> b9897dfc4


AMBARI-6282. Incorrect hosts count for custom config group after surfing back to Step 7 of
Install Wizard (Max Shepel via akovalenko)


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

Branch: refs/heads/branch-1.6.1
Commit: b9897dfc48af38e4786c2c7d4d1fe2d44fc58c13
Parents: 76b92e8
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Jun 26 15:39:16 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Thu Jun 26 15:39:16 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/host_progress_popup.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b9897dfc/ambari-web/app/utils/host_progress_popup.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/host_progress_popup.js b/ambari-web/app/utils/host_progress_popup.js
index c582cac..cfc06d1 100644
--- a/ambari-web/app/utils/host_progress_popup.js
+++ b/ambari-web/app/utils/host_progress_popup.js
@@ -528,7 +528,6 @@ App.HostPopup = Em.Object.create({
         isServiceListHidden: false,
         showTextArea: false,
         isServiceEmptyList: true,
-        isHostEmptyList: true,
         isTasksEmptyList: true,
         controller: this,
         sourceRequestScheduleId: -1,
@@ -572,9 +571,9 @@ App.HostPopup = Em.Object.create({
          * applied only to HOSTS_LIST and TASK_DETAILS levels, whereas async query used to
obtain data
          */
         isLevelLoaded: true,
-        content: function() {
-          return this.get('hosts') || [];
-        }.property('hosts.length', 'isHostListHidden'),
+        isHostEmptyList: function() {
+          return !this.get('pageContent.length');
+        }.property('pageContent.length'),
 
         currentHost: function () {
           return this.get('hosts') && this.get('hosts').findProperty('name', this.get('controller.currentHostName'));
@@ -651,7 +650,7 @@ App.HostPopup = Em.Object.create({
         filter: function() {
           var _this = this,
               filter = this.get('hostCategory.value'),
-              hosts = this.get('content');
+              hosts = this.get('hosts') || [];
           if (!filter || !hosts.length) return;
           if (filter === 'all') {
             this.set('filteredContent', hosts);
@@ -660,8 +659,7 @@ App.HostPopup = Em.Object.create({
               return _this.get('filterMap')[filter].contains(item.status);
             }));
           }
-          this.set("isHostEmptyList", !this.get('pageContent.length'));
-        }.observes('content.length', 'hostCategory.value'),
+        }.observes('hosts.length', 'hostCategory.value'),
 
         /**
          * Reset startIndex property back to 1 when filter type has been changed.


Mime
View raw message