fixed GUI's interactions after the submit

This commit is contained in:
Francesco Mangiacrapa 2020-11-09 11:08:15 +01:00
parent b5634cc225
commit 053bb4d72d
3 changed files with 5 additions and 5 deletions

View File

@ -27,6 +27,7 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">

View File

@ -234,15 +234,14 @@ public class GeoPortalDataEntryApp implements EntryPoint {
@Override @Override
public void onSuccess(CommitReport result) { public void onSuccess(CommitReport result) {
try { modalContainerPanel.clear();
modal.remove(loader); modal.setCloseVisible(true);
}catch (Exception e) {
}
Alert alert = new Alert(result.getMsg()); Alert alert = new Alert(result.getMsg());
switch (result.getState()) { switch (result.getState()) {
case OK: case OK:
alert.setType(AlertType.SUCCESS); alert.setType(AlertType.SUCCESS);
projectSavedWithSuccess = true; projectSavedWithSuccess = true;
geoNaMainForm.showAlertOnSaveAction(result.getMsg(), AlertType.SUCCESS, true);
purgeFileUploaded(); purgeFileUploaded();
break; break;
case WARN: case WARN:

View File

@ -133,7 +133,7 @@ public class GeonaDataEntryMainForm extends Composite {
} }
private void showAlertOnSaveAction(String text, AlertType type, boolean hideAfterAWhile){ public void showAlertOnSaveAction(String text, AlertType type, boolean hideAfterAWhile){
//Window.alert("Called alertOnCreate"); //Window.alert("Called alertOnCreate");
alertFormAction.setText(text); alertFormAction.setText(text);