소스 검색

HUE-8687 [frontend] Prevent initially garbled page when switching apps

Johan Ahlen 6 년 전
부모
커밋
9b5cfc5864
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/core/src/desktop/templates/hue.mako

+ 3 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -959,7 +959,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
                     }
                     $('#embeddable_' + app).html($rawHtml);
                     huePubSub.publish('app.dom.loaded', app);
-                    self.isLoadingEmbeddable(false);
+                    window.setTimeout(function () {
+                      self.isLoadingEmbeddable(false);
+                    }, 0)
                   });
                 } else {
                   window.location.href = baseURL;