diff options
author | vasraz <vasyl.razinkov@est.tech> | 2023-01-23 20:10:43 +0000 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2023-01-25 19:34:46 +0000 |
commit | 6e12c8ad59f11426e49f81c4a7032480b126bfbc (patch) | |
tree | 95ed2d948183f08afae133d16a6b0275f41f1058 /catalog-ui/src/app/models | |
parent | bd98d1022cac4cd0aaa6827b8eb4b7772b2fc033 (diff) |
Implement hiding mechanism
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I799af15e31b724ca394eebe435223c03186fb6d3
Issue-ID: SDC-4344
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r-- | catalog-ui/src/app/models/category.ts | 41 | ||||
-rw-r--r-- | catalog-ui/src/app/models/components/component.ts | 1 |
2 files changed, 20 insertions, 22 deletions
diff --git a/catalog-ui/src/app/models/category.ts b/catalog-ui/src/app/models/category.ts index a6445cafdd..dc7cf564c1 100644 --- a/catalog-ui/src/app/models/category.ts +++ b/catalog-ui/src/app/models/category.ts @@ -20,40 +20,39 @@ 'use strict'; - - export interface ICategoryBase { - //server properties - name:string; - displayName:string; - normalizedName:string; - uniqueId:string; - models:Array<string>; - icons:Array<string>; + // server properties + name: string; + displayName: string; + normalizedName: string; + uniqueId: string; + models: Array<string>; + icons: Array<string>; metadataKeys: IMetadataKey[]; - //custom properties - filterTerms:string; - isDisabled:boolean; - filteredGroup:Array<IGroup>; + // custom properties + filterTerms: string; + isDisabled: boolean; + filteredGroup: Array<IGroup>; } export interface IMainCategory extends ICategoryBase { - subcategories:Array<ISubCategory>; - useServiceSubstitutionForNestedServices:boolean; + subcategories: Array<ISubCategory>; + useServiceSubstitutionForNestedServices: boolean; + notApplicableMetadataKeys: Array<string>; } export interface ISubCategory extends ICategoryBase { - groupings:Array<ICategoryBase>; + groupings: Array<ICategoryBase>; } export interface IGroup extends ICategoryBase { } export interface IMetadataKey { - name:string; - displayName:string; - mandatory:boolean; - validValues: string[]; - defaultValue: string; + name: string; + displayName: string; + mandatory: boolean; + validValues: string[]; + defaultValue: string; } diff --git a/catalog-ui/src/app/models/components/component.ts b/catalog-ui/src/app/models/components/component.ts index bcebf3b9fa..a2f5a5ed3f 100644 --- a/catalog-ui/src/app/models/components/component.ts +++ b/catalog-ui/src/app/models/components/component.ts @@ -573,7 +573,6 @@ export abstract class Component implements IComponent { this.derivedList = componentMetadata.derivedList; this.normalizedName = componentMetadata.normalizedName; this.systemName = componentMetadata.systemName; - this.categories = componentMetadata.categories; this.isArchived = componentMetadata.isArchived; this.vspArchived = componentMetadata.vspArchived; this.componentMetadata = componentMetadata; |