fixed GUI's interactions after the submit
This commit is contained in:
parent
b5634cc225
commit
053bb4d72d
|
@ -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">
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue