From 62d6ac01dff991b9c185095e403de23f844d4580 Mon Sep 17 00:00:00 2001 From: gpapavgeri Date: Fri, 24 Jul 2020 12:43:09 +0300 Subject: [PATCH] Change the profile of DatasetListingModel & RecentActivityModel from String to DatasetProfileModel and Update profileId in openDmpSearchDialogue() --- dmp-frontend/src/app/core/model/dataset/dataset-listing.ts | 4 +++- .../core/model/recent-activity/recent-activity.model.ts | 3 ++- .../src/app/ui/dashboard/drafts/drafts.component.html | 2 +- .../src/app/ui/dashboard/drafts/drafts.component.ts | 2 +- .../recent-edited-activity.component.ts | 2 +- .../recent-edited-dataset-activity.component.html | 2 +- .../recent-edited-dataset-activity.component.ts | 2 +- .../listing/listing-item/dataset-listing-item.component.ts | 7 ++++--- 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/dmp-frontend/src/app/core/model/dataset/dataset-listing.ts b/dmp-frontend/src/app/core/model/dataset/dataset-listing.ts index 3ce5fa9cb..c4aa19530 100644 --- a/dmp-frontend/src/app/core/model/dataset/dataset-listing.ts +++ b/dmp-frontend/src/app/core/model/dataset/dataset-listing.ts @@ -1,3 +1,5 @@ +import { DatasetProfileModel } from './dataset-profile'; + export interface DatasetListingModel { id: string; label: String; @@ -6,7 +8,7 @@ export interface DatasetListingModel { grant: String; grantId: String; grantAbbreviation: String; - profile: String; + profile: DatasetProfileModel; dataRepositories: String; registries: String; services: String; diff --git a/dmp-frontend/src/app/core/model/recent-activity/recent-activity.model.ts b/dmp-frontend/src/app/core/model/recent-activity/recent-activity.model.ts index 871211661..b1cf43c60 100644 --- a/dmp-frontend/src/app/core/model/recent-activity/recent-activity.model.ts +++ b/dmp-frontend/src/app/core/model/recent-activity/recent-activity.model.ts @@ -1,5 +1,6 @@ import { RecentActivityType } from '@app/core/common/enum/recent-activity-type'; import { UserInfoListingModel } from '../user/user-info-listing'; +import { DatasetProfileModel } from '../dataset/dataset-profile'; export class RecentActivityModel { id: string; @@ -14,7 +15,7 @@ export class RecentActivityModel { grantId: String; finalizedAt: Date; publishedAt: Date; - profile: String; + profile: DatasetProfileModel; type: RecentActivityType; users: UserInfoListingModel[]; public: boolean; diff --git a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html index 6a45a9359..54a29ff83 100644 --- a/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html +++ b/dmp-frontend/src/app/ui/dashboard/drafts/drafts.component.html @@ -53,7 +53,7 @@ -