Francesco Mangiacrapa 6 years ago
parent 393ab97976
commit e054efa2f5

@ -138,6 +138,7 @@ public class WsThreddsWidget {
GWT.log("Performing doSyncFolder on: "+folder);
final Modal box = new Modal(true);
box.setTitle("Starting synchronization...");
box.hide(false);
LoaderIcon loader = new LoaderIcon("Inizializiting synchronization to the folder: "+folder.getFoderName());
box.add(loader);

@ -123,6 +123,8 @@ public class WsThreddsWidgetViewManager {
box.addStyleName("ws-thredds-modal-body");
box.setTitle("Monitor transferring of: "+FormatUtil.getFolderTitle(folder.getFoderName(), 20));
box.setWidth(800);
box.hide(false);
//box.setHeight("600px");
//box.setHeight("700px");
//box.getElement().getStyle().setZIndex(10000);
@ -180,6 +182,11 @@ public class WsThreddsWidgetViewManager {
@Override
public void onSuccess(ThSyncStatus status) {
if(status==null) {
GWT.log("The status is null server-side, cancelling polling");
cancelMonitor(folder);
}
currentMonitor.updateStatusView(folder, status);
if(status!=null && status.getProcessStatus()!=null) {

Loading…
Cancel
Save