aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com/vaadin/terminal/gwt/client/ApplicationConnection.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
index 7c8f49d8bc..c65e787cce 100755
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
@@ -63,6 +63,7 @@ public class ApplicationConnection {
/**
* @deprecated use UIDL_SECURITY_TOKEN_ID instead
*/
+ @Deprecated
public static final String UIDL_SECURITY_HEADER = UIDL_SECURITY_TOKEN_ID;
public static final String PARAM_UNLOADBURST = "onunloadburst";
@@ -162,7 +163,7 @@ public class ApplicationConnection {
var ap = this;
var client = {};
client.isActive = function() {
- return ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::hasActiveRequest()();
+ return ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::hasActiveRequest()() || ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::isLoadingIndicatorVisible()();
}
var vi = ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::getVersionInfo()();
if (vi) {
@@ -602,6 +603,17 @@ public class ApplicationConnection {
}
}
+ public boolean isLoadingIndicatorVisible() {
+ if (loadElement == null) {
+ return false;
+ }
+ if (loadElement.getStyle().getProperty("display").equals("none")) {
+ return false;
+ }
+
+ return true;
+ }
+
private static native ValueMap parseJSONResponse(String jsonText)
/*-{
return eval('(' + jsonText + ')');