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(
|
.subscribe(
|
||||||
complete => this.onCallbackSuccess(dmpId)
|
complete => this.onCallbackSuccess(dmpId)
|
||||||
);
|
);
|
||||||
this.isSubmitted = true;
|
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +132,6 @@ export class DatasetCreateWizard extends CheckDeactivateBaseComponent implements
|
||||||
.subscribe(
|
.subscribe(
|
||||||
complete => this.onCallbackSuccess(dmpId)
|
complete => this.onCallbackSuccess(dmpId)
|
||||||
);
|
);
|
||||||
this.isSubmitted = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hasDatasets() {
|
hasDatasets() {
|
||||||
|
@ -149,6 +147,7 @@ export class DatasetCreateWizard extends CheckDeactivateBaseComponent implements
|
||||||
}
|
}
|
||||||
|
|
||||||
onCallbackSuccess(dmpId: string): void {
|
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.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]);
|
this.router.navigate(['/plans/overview/' + dmpId]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,6 @@ export class QuickWizardEditorComponent extends CheckDeactivateBaseComponent imp
|
||||||
complete => this.onCallbackSuccess(),
|
complete => this.onCallbackSuccess(),
|
||||||
error => this.onCallbackError(error)
|
error => this.onCallbackError(error)
|
||||||
);
|
);
|
||||||
this.isSubmitted = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmitSave(): void {
|
onSubmitSave(): void {
|
||||||
|
@ -180,12 +179,12 @@ export class QuickWizardEditorComponent extends CheckDeactivateBaseComponent imp
|
||||||
.subscribe(
|
.subscribe(
|
||||||
complete => this.onCallbackSuccess()
|
complete => this.onCallbackSuccess()
|
||||||
)
|
)
|
||||||
this.isSubmitted = true;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onCallbackSuccess(): void {
|
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.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']);
|
this.router.navigate(['/home']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue