From 7056678bbb2e6124c70f121554f1fc7655216f38 Mon Sep 17 00:00:00 2001 From: amentis Date: Mon, 29 Apr 2024 17:25:59 +0300 Subject: [PATCH] description small fiexes --- .../description/editor/description-editor.component.html | 2 +- .../ui/description/editor/description-editor.component.ts | 7 ++++--- .../ui/description/editor/description-editor.resolver.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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('.'),