From 74779d8054c8c0fd416d5e52bfea751554a8c210 Mon Sep 17 00:00:00 2001 From: gkolokythas Date: Thu, 25 Jul 2019 17:09:14 +0300 Subject: [PATCH] Fixed "XX Datasets" redirect links on DMP overview model. (Issue #144) --- .../listing/listing-item/dmp-listing-item.component.html | 4 ++-- .../dmp/listing/listing-item/dmp-listing-item.component.ts | 4 ++-- .../src/app/ui/dmp/overview/dmp-overview.component.html | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html index 4f8155e6e..e591f89b5 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html @@ -55,10 +55,10 @@

{{roleDisplay(dmp.users).toUpperCase()}}

- + storage -

+

{{dmp.datasets.length}}

diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts index 6ce67dd58..21a349f45 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts @@ -88,8 +88,8 @@ export class DmpListingItemComponent implements OnInit { this.router.navigate(['/projects/edit/' + projectId]); } - datasetClicked(dmp: DmpListingModel) { - this.router.navigate(['/datasets'], { queryParams: { dmpId: dmp.id } }); + datasetClicked(dmpId: string) { + this.router.navigate(['/plans/edit/' + dmpId], { queryParams: { tab: "datasetDescriptions" } }); } roleDisplay(value: any) { diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html index 55a23b67d..92d380926 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html @@ -66,7 +66,7 @@ settings

{{ roleDisplay(dmp.users) }}

-
+
storage

@@ -75,6 +75,10 @@ {{'NAV-BAR.DATASETS' | translate}}

+ storage +

{{ dmp.datasets.length }}

+

{{'NAV-BAR.DATASETS' | translate}}

+ assignment

{{ dmp.associatedProfiles.length }}

{{ 'DMP-EDITOR.FIELDS.TEMPLATES' | translate }}