summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-30 18:12:17 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-30 18:12:22 +0800
commit89bd8b5842a3e1849c1888f2456e7c18f7551bf0 (patch)
treeb8c6a8bd38f35089cebd2b273ff2916d3b042d99
parentda3c80aefd89bfa3f728c02d9d05eee18bb87cd9 (diff)
Service instance lifecycle management
Change-Id: If654c7a3a6a92aaf1fbfcf5b1208e568e434d507 Issue-ID: USECASEUI-218 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts14
1 files changed, 3 insertions, 11 deletions
diff --git a/usecaseui-portal/src/app/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
index 7a5cf3a8..959df390 100644
--- a/usecaseui-portal/src/app/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/services/services-list/services-list.component.ts
@@ -293,18 +293,8 @@ export class ServicesListComponent implements OnInit {
if(typeof item == "string"){
item = JSON.parse(item);
}
- if(typeof item["childServiceInstances"] == "string"){
- item["childServiceInstances"] = JSON.parse(item["childServiceInstances"]);
- }
- item["childServiceInstances"] = item["childServiceInstances"].map((child)=>{
- if(typeof child == "string"){
- return JSON.parse(child);
- }else{
- return child;
- }
- })
- item["iconMore"]=this.iconMore;
+ item["iconMore"]=this.iconMore;
if(item["serviceDomain"]=="Network Service"){
if(item["vnfInfo"]){
item["childServiceInstances"] = item["vnfInfo"].map((vnf)=>{
@@ -322,6 +312,8 @@ export class ServicesListComponent implements OnInit {
return vnfInfo;
})
}
+ }else {
+ item["childServiceInstances"] = [];
}
//