diff --git a/dmp-frontend/src/app/core/model/dmp/dmp.ts b/dmp-frontend/src/app/core/model/dmp/dmp.ts index d941477cd..2a200a5fb 100644 --- a/dmp-frontend/src/app/core/model/dmp/dmp.ts +++ b/dmp-frontend/src/app/core/model/dmp/dmp.ts @@ -5,7 +5,7 @@ import { DmpVersionStatus } from '@app/core/common/enum/dmp-version-status'; import { BaseEntity, BaseEntityPersist } from '@common/base/base-entity.model'; import { Guid } from '@common/types/guid'; import { DescriptionTemplate } from '../description-template/description-template'; -import { Description, PublicDescription } from '../description/description'; +import { BaseDescription, Description, PublicDescription } from '../description/description'; import { DmpBlueprint } from '../dmp-blueprint/dmp-blueprint'; import { EntityDoi } from '../entity-doi/entity-doi'; import { ReferencePersist } from '../reference/reference'; @@ -221,4 +221,5 @@ export interface PublicEntityDoi { export interface BaseDmp extends BaseEntity { status?: DmpStatus; + descriptions?: BaseDescription[]; } diff --git a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts index 68de3abd1..2c48f4511 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.ts @@ -194,7 +194,8 @@ export class DmpListingComponent extends BaseListingComponent { + dmp.descriptions = dmp.descriptions.filter(d => d.isActive == IsActive.Active); + }) + return dmps; + } + private get _lookupFields(): string[] { return [ nameof(x => x.id),