Explorar o código

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

Johan Ahlen %!s(int64=6) %!d(string=hai) anos
pai
achega
9b5cfc5
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;