From 52682bdf7ebddc6ccc5455e3b988ff7d5949601a Mon Sep 17 00:00:00 2001 From: guochuyicmri Date: Mon, 20 May 2019 16:28:31 +0800 Subject: Fix instance instantiation for NS Change-Id: I96ebbaf680aa7f0976785a9ee478d1fac052f4c2 Issue-ID: USECASEUI-255 Signed-off-by: guochuyicmri --- .../src/app/components/e2e-detail/e2e-detail.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usecaseui-portal') diff --git a/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts b/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts index cfcaae6c..554f25c6 100644 --- a/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts +++ b/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts @@ -124,17 +124,17 @@ export class E2eDetailComponent implements OnInit { } }else if(this.detailParams.serviceDomain == 'Network Service'){ this.ns_service = { - name:this.detailParams.name, - description: this.detailParams.description, + name:this.detailParams.name || this.detailParams['service-instance-name'], + description: this.detailParams.description || null }; if(this.detailParams.requestInputs!=undefined && Object.keys(this.detailParams.requestInputs).length>0){ this.ns_requestInputs = this.detailParams.requestInputs; } - this.ns_nestedTemplates = this.detailParams.vnfInfo; + this.ns_nestedTemplates = this.detailParams.childServiceInstances; this.rootns.children=this.ns_nestedTemplates.map((item,index) => { return { "name": "vnf", - "type": "vnf", + "type": "vnf" } }); console.log(this.ns_nestedTemplates); -- cgit 1.2.3-korg