Minor change on show dialog condition when leaving wizard pages before submit.
This commit is contained in:
parent
61a1ea9274
commit
f755744a5e
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue