diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html index e037ec587..7a1b73a7f 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html @@ -80,7 +80,7 @@
-
+
chevron_left {{'DESCRIPTION-EDITOR.ACTIONS.BACK-TO' | translate}}
diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts index 555cf9fd3..2f2062643 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts @@ -686,8 +686,9 @@ export class DescriptionEditorComponent extends BaseEditor { this.uiNotificationService.snackBarNotification(this.isNew ? this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-CREATION') : this.language.instant('GENERAL.SNACK-BAR.SUCCESSFUL-UPDATE'), SnackBarNotificationLevel.Success); + const dmpId = this.formGroup.get('dmpId').value; this.formGroup = null; - this.backToDmp(); + this.backToDmp(dmpId); }); } @@ -767,8 +768,8 @@ export class DescriptionEditorComponent extends BaseEditor(x => x.descriptionTags), nameof(x => x.id),].join('.'), [nameof(x => x.descriptionTags), nameof(x => x.tag), nameof(x => x.label)].join('.'), - [nameof(x => x.descriptionTags), nameof(x => x.tag), nameof(x => x.isActive)].join('.'), + [nameof(x => x.descriptionTags), nameof(x => x.isActive)].join('.'), [nameof(x => x.descriptionReferences), nameof(x => x.data), nameof(x => x.fieldId)].join('.'), [nameof(x => x.descriptionReferences), nameof(x => x.reference), nameof(x => x.id)].join('.'),