فهرست منبع

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;