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">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<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
public void onSuccess(CommitReport result) {
try {
modal.remove(loader);
}catch (Exception e) {
}
modalContainerPanel.clear();
modal.setCloseVisible(true);
Alert alert = new Alert(result.getMsg());
switch (result.getState()) {
case OK:
alert.setType(AlertType.SUCCESS);
projectSavedWithSuccess = true;
geoNaMainForm.showAlertOnSaveAction(result.getMsg(), AlertType.SUCCESS, true);
purgeFileUploaded();
break;
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");
alertFormAction.setText(text);