From ceb5ab575aa49f4d082fe1e52cc1a3f8ff3ffd24 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Tue, 28 Jan 2020 15:41:44 +0200 Subject: fix ui-ci tests Issue-ID: SDC-2730 Signed-off-by: Yuli Shlosberg Change-Id: I45500daf397a523d450b30836dda188573de04a3 --- .../modals/onboarding-modal/onboarding-modal.component.html | 2 +- catalog-ui/src/app/ng2/services/onboarding.service.ts | 2 +- catalog-ui/src/app/utils/component-factory.ts | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'catalog-ui/src') diff --git a/catalog-ui/src/app/ng2/components/modals/onboarding-modal/onboarding-modal.component.html b/catalog-ui/src/app/ng2/components/modals/onboarding-modal/onboarding-modal.component.html index 6ba1f428a1..49ed984b47 100644 --- a/catalog-ui/src/app/ng2/components/modals/onboarding-modal/onboarding-modal.component.html +++ b/catalog-ui/src/app/ng2/components/modals/onboarding-modal/onboarding-modal.component.html @@ -1,4 +1,4 @@ -
+
{ + public createEmptyComponent = (componentType:string, resourceType?:string):Component => { let newComponent:Component; switch (componentType) { @@ -161,6 +161,9 @@ export class ComponentFactory { case ResourceType.CVFC: case ResourceType.CONFIGURATION: newComponent = new Resource(this.ResourceService, this.$q); + if (resourceType){ + ( newComponent).resourceType = resourceType; + } break; } newComponent.componentType = componentType; -- cgit 1.2.3-korg