From 7c3f06d9f4af003d3d9c7c27ca14e5e23118f8e6 Mon Sep 17 00:00:00 2001 From: gpapavgeri Date: Mon, 6 Jul 2020 18:42:54 +0300 Subject: [PATCH] dataset-overview_update v4 --- .../core/model/dataset/dataset-overview.ts | 3 +- .../app/core/model/researcher/researcher.ts | 2 +- .../overview/dataset-overview.component.html | 90 +--- .../overview/dataset-overview.component.scss | 3 +- .../overview/dataset-overview.component.ts | 411 +++++++++--------- .../dmp/overview/dmp-overview.component.html | 28 +- .../ui/dmp/overview/dmp-overview.component.ts | 19 - 7 files changed, 226 insertions(+), 330 deletions(-) diff --git a/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts b/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts index 34bbe936c..3080a1548 100644 --- a/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts +++ b/dmp-frontend/src/app/core/model/dataset/dataset-overview.ts @@ -1,5 +1,6 @@ import { DatasetProfileModel } from "./dataset-profile"; import { GrantOverviewModel } from '../grant/grant-overview'; +import { DmpOverviewModel } from '../dmp/dmp-overview'; export interface DatasetOverviewModel { id: string; @@ -8,7 +9,7 @@ export interface DatasetOverviewModel { datasetTemplate: DatasetProfileModel; users: any[]; - dmp: String; + dmp: DmpOverviewModel; grant: GrantOverviewModel; description: String; public: boolean; diff --git a/dmp-frontend/src/app/core/model/researcher/researcher.ts b/dmp-frontend/src/app/core/model/researcher/researcher.ts index 6c5bf6a98..9d23a8403 100644 --- a/dmp-frontend/src/app/core/model/researcher/researcher.ts +++ b/dmp-frontend/src/app/core/model/researcher/researcher.ts @@ -1,5 +1,5 @@ export interface ResearcherModel { - id: String; + id: string; name: String; reference: String; lastName: String; diff --git a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html index dcd35cc47..a85436ba8 100644 --- a/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html +++ b/dmp-frontend/src/app/ui/dataset/overview/dataset-overview.component.html @@ -8,8 +8,8 @@
- -

{{ dataset.label }}

+ +

{{ dataset.label }}

@@ -27,20 +27,10 @@ {{'DMP-OVERVIEW.PRIVATE' | translate}}
- - +
+ lock_outline + {{'DMP-OVERVIEW.LOCKED' | translate}} +
{{'GENERAL.STATUSES.EDIT' | translate}} : {{dataset.modified | date:"longDate"}}
@@ -49,10 +39,6 @@ check {{'TYPES.DATASET-STATUS.FINALISED' | translate}}
-
- create - {{'TYPES.DATASET-STATUS.DRAFT' | translate}} -
@@ -71,17 +57,10 @@ matTooltipPosition="above"> delete -
{{'DATASET-LISTING.TOOLTIP.PART-OF' | translate}}
-
{{'DMP-OVERVIEW.GRANT' | translate}}
-
Grant label
- +
{{ dataset.grant.label }}
{{'DMP-OVERVIEW.RESEARCHERS' | translate}}
- +
{{'DATASET-LISTING.COLUMNS.DESCRIPTION' | translate}}
@@ -109,28 +87,6 @@
-
-
- -
- -

{{ 'DMP-LISTING.ACTIONS.MAKE-PUBLIC' | translate }}

-
-
-
-
- lock_outline - {{'DMP-OVERVIEW.LOCKED' | translate}} -
-
- lock_open - {{'DMP-OVERVIEW.UNLOCKED' | translate}} -
+
+ lock_outline + {{'DMP-OVERVIEW.LOCKED' | translate}}
-
- create - {{'TYPES.DMP.DRAFT' | translate}} -
@@ -60,22 +50,16 @@ matTooltip="{{'DMP-LISTING.ACTIONS.CLONE' | translate}}" matTooltipPosition="above"> content_copy - - -
{{'DMP-OVERVIEW.GRANT' | translate}}
{{ dmp.grant.label }}
@@ -145,7 +129,7 @@
-
+