You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/22 01:53:30 UTC
svn commit: r1495639 -
/incubator/ambari/branches/branch-1.4.0/ambari-web/app/utils/host_progress_popup.js
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 () {