with previous commit

This commit is contained in:
apapachristou 2020-11-02 18:14:10 +02:00
parent d0d98bc520
commit abfb6342b2
1 changed files with 0 additions and 10 deletions

View File

@ -629,21 +629,14 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
});
}
<<<<<<< HEAD
onCallbackSuccess(data?: DatasetWizardModel, saveType?: SaveType): void {
this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
if (data.id) {
=======
onCallbackSuccess(data?: DatasetWizardEditorModel, saveType?: SaveType): void {
this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success);
if (data) {
>>>>>>> c391cd5521858e9623d695ae9630295df416bf86
if (saveType === this.saveAnd.addNew) {
this.router.navigate(['/reload']).then(() => { this.router.navigate(['/datasets', 'new', this.formGroup.get('dmp').value.id]); })
} else if (saveType === this.saveAnd.close) {
this.router.navigate(['/reload']).then(() => { this.router.navigate(['/plans', 'edit', this.formGroup.get('dmp').value.id]); });
} else {
<<<<<<< HEAD
this.datasetWizardModel = new DatasetWizardEditorModel().fromModel(data);
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
this.editMode = this.datasetWizardModel.status === DatasetStatus.Draft;
@ -667,9 +660,6 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
}, 500);
// this.router.navigate(['/reload']).then(() => { this.router.navigate(['/datasets', 'edit', data.id]); });
=======
this.router.navigate(['/reload']).then(() => { this.router.navigate(['/datasets', 'edit', data.id]); });
>>>>>>> c391cd5521858e9623d695ae9630295df416bf86
}
} else {
this.router.navigate(['/datasets']);