summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/utils
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2020-01-28 15:41:44 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-01-28 14:48:15 +0000
commitceb5ab575aa49f4d082fe1e52cc1a3f8ff3ffd24 (patch)
tree8e880d0482357e1cde95f736eec036d0f02c1b82 /catalog-ui/src/app/utils
parent2ffcb7dea4d714a7c419c311b752db471691266e (diff)
fix ui-ci tests
Issue-ID: SDC-2730 Signed-off-by: Yuli Shlosberg <ys9693@att.com> Change-Id: I45500daf397a523d450b30836dda188573de04a3
Diffstat (limited to 'catalog-ui/src/app/utils')
-rw-r--r--catalog-ui/src/app/utils/component-factory.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/catalog-ui/src/app/utils/component-factory.ts b/catalog-ui/src/app/utils/component-factory.ts
index 889f6fb43b..d4e282fcb0 100644
--- a/catalog-ui/src/app/utils/component-factory.ts
+++ b/catalog-ui/src/app/utils/component-factory.ts
@@ -142,7 +142,7 @@ export class ComponentFactory {
return newResource;
};
- public createEmptyComponent = (componentType:string):Component => {
+ 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){
+ (<Resource> newComponent).resourceType = resourceType;
+ }
break;
}
newComponent.componentType = componentType;