incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1495639 - /incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js
Date Fri, 21 Jun 2013 23:53:30 GMT
Author: yusaku
Date: Fri Jun 21 23:53:29 2013
New Revision: 1495639

URL: http://svn.apache.org/r1495639
Log:
AMBARI-2457. Wrong behavior in Background operations popup. (Oleg Nechiporenko via yusaku)

Modified:
    incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js

Modified: incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js?rev=1495639&r1=1495638&r2=1495639&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js (original)
+++ incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js Fri
Jun 21 23:53:29 2013
@@ -327,7 +327,10 @@ App.HostPopup = Em.Object.create({
 
         tasks: function() {
           if (!this.get('controller.currentHostName')) return [];
-          return this.get('hosts').findProperty('name', this.get('controller.currentHostName')).get('tasks');
+          if (this.get('hosts')) {
+            return this.get('hosts').findProperty('name', this.get('controller.currentHostName')).get('tasks');
+          }
+          return [];
         }.property('hosts.@each.tasks', 'hosts.@each.tasks.@each.status'),
 
         didInsertElement: function () {



Mime
View raw message