소스 검색

AMBARI-4408. Background operations dialog in weird state after exception. (srimanth)

Srimanth Gunturi 11 년 전
부모
커밋
b7f6163a5c
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 2
      ambari-web/app/templates/common/host_progress_popup.hbs
  2. 2 1
      ambari-web/app/utils/host_progress_popup.js

+ 0 - 2
ambari-web/app/templates/common/host_progress_popup.hbs

@@ -98,8 +98,6 @@
         </div>
       {{/if}}
     {{/if}}
-    </div>
-    </div>
     <div id="host-info">
       {{#if view.isHostEmptyList}}
         <div class="log-list-wrap">{{t hostPopup.noHostsToShow}}</div>

+ 2 - 1
ambari-web/app/utils/host_progress_popup.js

@@ -744,7 +744,8 @@ App.HostPopup = Em.Object.create({
           var self = this;
           var id = this.get('sourceRequestScheduleId');
           batchUtils.getRequestSchedule(id, function(data) {
-            if (data != null && data.RequestSchedule.status != null) {
+            if (data != null && data.RequestSchedule != null &&
+                data.RequestSchedule.status != null) {
               switch (data.RequestSchedule.status) {
               case 'DISABLED':
                 self.set('sourceRequestScheduleRunning', false);