diff --git a/dmp-frontend/src/app/core/model/dmp-blueprint/dmp-blueprint.ts b/dmp-frontend/src/app/core/model/dmp-blueprint/dmp-blueprint.ts index 4e4181a57..ff758e018 100644 --- a/dmp-frontend/src/app/core/model/dmp-blueprint/dmp-blueprint.ts +++ b/dmp-frontend/src/app/core/model/dmp-blueprint/dmp-blueprint.ts @@ -10,6 +10,7 @@ export interface DmpBlueprint extends BaseEntity { label: string; definition: DmpBlueprintDefinition; status: DmpBlueprintStatus; + version: number; } export interface DmpBlueprintDefinition { @@ -55,12 +56,6 @@ export interface DmpBlueprintPersist extends BaseEntityPersist { status: DmpBlueprintStatus; } -export interface CloneDmpBlueprintPersist { - label: string; - definition: DmpBlueprintDefinitionPersist; - status: DmpBlueprintStatus; -} - export interface NewVersionDmpBlueprintPersist { label: string; definition: DmpBlueprintDefinitionPersist; diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html index 93f298200..7fd040978 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html @@ -2,7 +2,8 @@
-

{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW' | translate}}

+

{{'DMP-BLUEPRINT-EDITOR.TITLE.NEW' | translate}}

+

{{formGroup.get('label').value}}

{{'DMP-BLUEPRINT-EDITOR.TITLE.CLONE' | translate}} {{formGroup.get('label').value}} @@ -11,7 +12,6 @@ {{'DMP-BLUEPRINT-EDITOR.TITLE.NEW-VERSION' | translate}} {{formGroup.get('label').value}}

-
@@ -256,7 +256,7 @@
-
diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts index d22c85fe5..df08ac997 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.ts @@ -78,13 +78,22 @@ export class DmpBlueprintEditorComponent extends BaseEditor queue{{'DMP-BLUEPRINT-LISTING.ACTIONS.NEW-VERSION' | translate}} - diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/listing/dmp-blueprint-listing.component.ts b/dmp-frontend/src/app/ui/admin/dmp-blueprint/listing/dmp-blueprint-listing.component.ts index 6bf03eaf8..8217ebe8e 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/listing/dmp-blueprint-listing.component.ts +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/listing/dmp-blueprint-listing.component.ts @@ -49,6 +49,7 @@ export class DmpBlueprintListingComponent extends BaseListingComponent(x => x.id), nameof(x => x.label), nameof(x => x.status), + nameof(x => x.version), nameof(x => x.updatedAt), nameof(x => x.createdAt), nameof(x => x.hash), @@ -103,12 +104,18 @@ export class DmpBlueprintListingComponent extends BaseListingComponent(x => x.label), sortable: true, languageName: 'DMP-BLUEPRINT-LISTING.FIELDS.NAME' - }, { + }, + { prop: nameof(x => x.status), sortable: true, languageName: 'DMP-BLUEPRINT-LISTING.FIELDS.STATUS', cellTemplate: this.dmpBlueprintStatus }, + { + prop: nameof(x => x.version), + sortable: true, + languageName: 'DMP-BLUEPRINT-LISTING.FIELDS.VERSION' + }, { prop: nameof(x => x.createdAt), sortable: true, diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index fcef511d2..be2dddbe1 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -1900,6 +1900,7 @@ "FIELDS": { "NAME": "Name", "STATUS": "Status", + "VERSION": "Version", "UPDATED-AT": "Updated", "CREATED-AT": "Created", "PUBLISHED-AT": "Published", @@ -1922,7 +1923,6 @@ "EDIT": "Edit", "CLONE": "Clone", "NEW-VERSION": "New Version", - "NEW-VERSION-FROM-FILE": "New Version from File", "DOWNLOAD-XML": "Download XML" }, "IMPORT": {