Browse Source

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

Johan Ahlen 6 năm trước cách đây
mục cha
commit
9b5cfc5864
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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;