Minor change on show dialog condition when leaving wizard pages before submit.

This commit is contained in:
apapachristou 2019-10-02 14:11:19 +03:00
parent 61a1ea9274
commit f755744a5e
2 changed files with 2 additions and 4 deletions

View File

@ -73,7 +73,6 @@ export class DatasetCreateWizard extends CheckDeactivateBaseComponent implements
.subscribe(
complete => this.onCallbackSuccess(dmpId)
);
this.isSubmitted = true;
} else {
return;
}
@ -133,7 +132,6 @@ export class DatasetCreateWizard extends CheckDeactivateBaseComponent implements
.subscribe(
complete => this.onCallbackSuccess(dmpId)
);
this.isSubmitted = true;
}
hasDatasets() {
@ -149,6 +147,7 @@ export class DatasetCreateWizard extends CheckDeactivateBaseComponent implements
}
onCallbackSuccess(dmpId: string): void {
this.isSubmitted = true;
this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
this.router.navigate(['/plans/overview/' + dmpId]);
}

View File

@ -158,7 +158,6 @@ export class QuickWizardEditorComponent extends CheckDeactivateBaseComponent imp
complete => this.onCallbackSuccess(),
error => this.onCallbackError(error)
);
this.isSubmitted = true;
}
onSubmitSave(): void {
@ -180,12 +179,12 @@ export class QuickWizardEditorComponent extends CheckDeactivateBaseComponent imp
.subscribe(
complete => this.onCallbackSuccess()
)
this.isSubmitted = true;
}
});
}
onCallbackSuccess(): void {
this.isSubmitted = true;
this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
this.router.navigate(['/home']);
}