You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2018/06/08 15:58:30 UTC

[ambari] branch trunk updated: AMBARI-24061. Clicking on 'Details' button in Upgrade wizard shows no data (akovalenko)

This is an automated email from the ASF dual-hosted git repository.

akovalenko pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 39f60f8  AMBARI-24061. Clicking on 'Details' button in Upgrade wizard shows no data (akovalenko)
39f60f8 is described below

commit 39f60f8cc564fb2ae836839af8fa3e417f47e8c6
Author: Aleksandr Kovalenko <ak...@apache.org>
AuthorDate: Fri Jun 8 17:52:10 2018 +0300

    AMBARI-24061. Clicking on 'Details' button in Upgrade wizard shows no data (akovalenko)
---
 .../app/views/main/admin/stack_upgrade/upgrade_task_view.js      | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/views/main/admin/stack_upgrade/upgrade_task_view.js b/ambari-web/app/views/main/admin/stack_upgrade/upgrade_task_view.js
index dee2541..0ea332d 100644
--- a/ambari-web/app/views/main/admin/stack_upgrade/upgrade_task_view.js
+++ b/ambari-web/app/views/main/admin/stack_upgrade/upgrade_task_view.js
@@ -79,12 +79,19 @@ App.upgradeTaskView = Em.View.extend({
    */
   isContentLoaded: false,
 
+  didInsertElement: function() {
+    if (this.get('outsideView') && this.get('content')) {
+      this.toggleExpanded({context: this.get('content')});
+    }
+  },
+
   toggleExpanded: function (event) {
     var isExpanded = event.context.get('isExpanded');
     event.context.toggleProperty('isExpanded', !isExpanded);
     if (!isExpanded) {
-      event.context.set('isContentLoaded', false);
       this.doPolling(event.context);
+    } else {
+      this.set('isContentLoaded', true);
     }
   },
 

-- 
To stop receiving notification emails like this one, please contact
akovalenko@apache.org.