From 80c2cf3c70db2605eb9c2e28515a73567f3404ee Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Thu, 2 Jun 2022 16:34:57 +0100 Subject: Support get functions in composition property modal Allow to assign get functions values to properties in the composition properties modal. Change-Id: I470be63e2980994f43be255d8056af7392baab75 Issue-ID: SDC-4031 Signed-off-by: andre.schmid --- catalog-ui/src/app/models/component-metadata.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/models') diff --git a/catalog-ui/src/app/models/component-metadata.ts b/catalog-ui/src/app/models/component-metadata.ts index c79552844d..e3d03a549e 100644 --- a/catalog-ui/src/app/models/component-metadata.ts +++ b/catalog-ui/src/app/models/component-metadata.ts @@ -19,7 +19,7 @@ */ import { CapabilitiesGroup, RequirementsGroup } from 'app/models'; -import {ComponentState, ComponentType} from 'app/utils'; +import {ComponentState, ComponentType, ResourceType} from 'app/utils'; import { IMainCategory } from './category'; import { Metadata } from "app/models/metadata"; /** @@ -212,6 +212,10 @@ export class ComponentMetadata implements IComponentMetadata { return this.componentType === ComponentType.SERVICE; } + public isVfc(): boolean { + return this.resourceType === ResourceType.VFC; + } + public getTypeUrl(): string { return this.componentType === ComponentType.RESOURCE ? 'resources/' : 'services/'; } -- cgit 1.2.3-korg