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('[email protected]', '[email protected][email protected]'),
didInsertElement: function () {