From 0f1b6ea4fbe66f9a71fbba9bddb8280b89a19033 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Mon, 13 May 2024 11:53:58 +0300 Subject: [PATCH] pre select all descriptions on dmp-clone and dmp-new-versions --- .../src/app/ui/dmp/clone-dialog/dmp-clone-dialog.editor.model.ts | 1 + .../new-version-dialog/dmp-new-version-dialog.editor.model.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dmp-frontend/src/app/ui/dmp/clone-dialog/dmp-clone-dialog.editor.model.ts b/dmp-frontend/src/app/ui/dmp/clone-dialog/dmp-clone-dialog.editor.model.ts index 9222db584..801ebe21a 100644 --- a/dmp-frontend/src/app/ui/dmp/clone-dialog/dmp-clone-dialog.editor.model.ts +++ b/dmp-frontend/src/app/ui/dmp/clone-dialog/dmp-clone-dialog.editor.model.ts @@ -21,6 +21,7 @@ export class DmpCloneDialogEditorModel implements CloneDmpPersist { this.id = item.id; this.label = item.label + " New"; this.description = item.description; + this.descriptions = item.descriptions.map(d=> d.id); } return this; } diff --git a/dmp-frontend/src/app/ui/dmp/new-version-dialog/dmp-new-version-dialog.editor.model.ts b/dmp-frontend/src/app/ui/dmp/new-version-dialog/dmp-new-version-dialog.editor.model.ts index 12fcfae85..5741044f3 100644 --- a/dmp-frontend/src/app/ui/dmp/new-version-dialog/dmp-new-version-dialog.editor.model.ts +++ b/dmp-frontend/src/app/ui/dmp/new-version-dialog/dmp-new-version-dialog.editor.model.ts @@ -23,6 +23,7 @@ export class DmpNewVersionDialogEditorModel implements NewVersionDmpPersist { this.id = item.id; this.label = item.label; this.description = item.description; + this.descriptions = item.descriptions.map(d=> d.id); this.blueprintId = item.blueprint.id; this.hash= item.hash; }