Alexander Wels has uploaded a new change for review.

Change subject: webadmin: First login loading stuck.
......................................................................

webadmin: First login loading stuck.

- After one refreshed the webadmin hostpage with the browser, and
  logged in, the VM loading screen would be displayed until the next
  regular refresh of the VM model (or if one clicked refresh). Fixed
  the code to force a complete refresh of the model when displaying
  the main tab.

Change-Id: I97a6f9e47a5af34b66bd9dc32be55d2775f4b1c2
Signed-off-by: Alexander Wels <[email protected]>
---
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/AbstractMainTabWithDetailsPresenter.java
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/89/21389/1

diff --git 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/AbstractMainTabWithDetailsPresenter.java
 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/AbstractMainTabWithDetailsPresenter.java
index 2245058..7f2d22d 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/AbstractMainTabWithDetailsPresenter.java
+++ 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/AbstractMainTabWithDetailsPresenter.java
@@ -10,7 +10,6 @@
 import org.ovirt.engine.ui.webadmin.place.ApplicationPlaces;
 
 import com.google.gwt.event.shared.EventBus;
-import 
com.google.gwt.user.cellview.client.LoadingStateChangeEvent.LoadingState;
 import com.google.gwt.view.client.SelectionChangeEvent;
 import com.gwtplatform.mvp.client.View;
 import com.gwtplatform.mvp.client.proxy.PlaceManager;
@@ -90,8 +89,8 @@
 
         getTable().resetScrollPosition();
 
-        // Set state to loading, so we see the loading image when switching 
tab.
-        getTable().setLoadingState(LoadingState.LOADING);
+        // Do a manual refresh.
+        modelProvider.onManualRefresh();
     }
 
     /**


-- 
To view, visit http://gerrit.ovirt.org/21389
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I97a6f9e47a5af34b66bd9dc32be55d2775f4b1c2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to