From c5ef980bb5c9af65e1f190c0352329134d6a7459 Mon Sep 17 00:00:00 2001 From: Tomasz Golabek Date: Wed, 19 Feb 2020 16:46:44 +0100 Subject: PM_Dictionary Support in GAB Generic Artifact Browser is visible for PM_DICTIONARY artifacts Two agreed formats of the artifact are supported (examples in tests) Small fix for searchable fields and introduced new once for PM_DICTIONARY: measType measDescription measObjClass measFamily measInfoId Change-Id: I2cb609bab6405b55e8099da023ae035205dcd1ab Issue-ID: SDC-2095 Signed-off-by: Tomasz Golabek --- catalog-ui/src/app/models/artifacts.ts | 2 +- catalog-ui/src/app/utils/constants.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog-ui') diff --git a/catalog-ui/src/app/models/artifacts.ts b/catalog-ui/src/app/models/artifacts.ts index 7b93470de3..e290dc624e 100644 --- a/catalog-ui/src/app/models/artifacts.ts +++ b/catalog-ui/src/app/models/artifacts.ts @@ -116,7 +116,7 @@ export class ArtifactModel { }; public isGenericBrowseable = ():boolean => { - return this.artifactType == ArtifactType.VES_EVENTS; + return this.artifactType === ArtifactType.VES_EVENTS || this.artifactType === ArtifactType.PM_DICTIONARY; }; public toJSON = ():any => { diff --git a/catalog-ui/src/app/utils/constants.ts b/catalog-ui/src/app/utils/constants.ts index e82322e0de..8ad8db2b69 100644 --- a/catalog-ui/src/app/utils/constants.ts +++ b/catalog-ui/src/app/utils/constants.ts @@ -106,6 +106,7 @@ export class ArtifactType { static HEAT_VOL = "HEAT_VOL"; static HEAT_NET = "HEAT_NET"; static VF_LICENSE = "VF_LICENSE"; + static PM_DICTIONARY = "PM_DICTIONARY"; static VENDOR_LICENSE = "VENDOR_LICENSE"; static THIRD_PARTY_RESERVED_TYPES = { WORKFLOW: "WORKFLOW", -- cgit 1.2.3-korg