diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPDocumentStatus.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPDocumentStatus.java index e17c078627..33b826c958 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPDocumentStatus.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPDocumentStatus.java @@ -29,10 +29,13 @@ package org.adempiere.webui.dashboard; +import org.adempiere.util.ContextRunnable; +import org.adempiere.webui.apps.BusyDialog; import org.adempiere.webui.apps.graph.WDocumentStatusPanel; import org.adempiere.webui.component.ToolBarButton; import org.adempiere.webui.theme.ThemeManager; import org.adempiere.webui.util.ServerPushTemplate; +import org.compiere.Adempiere; import org.compiere.util.Env; import org.compiere.util.Msg; import org.compiere.util.Util; @@ -95,8 +98,20 @@ public class DPDocumentStatus extends DashboardPanel implements EventListener { + busyDialog.detach(); + }); + } + }; + Adempiere.getThreadPoolExecutor().submit(cr); } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java index d9cb2b0b3e..bca5fc6700 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java @@ -143,7 +143,7 @@ public class DashboardRunnable implements Runnable, Serializable @Override protected void doRun() { dpanel.refresh(template); - template.execute(() -> { + template.executeAsync(() -> { busyDialog.detach(); }); }