From c47567bca46298b007c2c013a28ced6e2f8ff023 Mon Sep 17 00:00:00 2001 From: guochuyicmri Date: Mon, 26 Nov 2018 14:57:36 +0800 Subject: Fix E2E Service Instantiation bugs Change-Id: I2f2ff9a58102390d63bd9f7ebe016056bde696b8 Issue-ID: USECASEUI-179 Signed-off-by: guochuyicmri --- .../src/app/services/services-list/services-list.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal') 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 f4957913..24bb45c8 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 @@ -202,9 +202,10 @@ export class ServicesListComponent implements OnInit { item["status"] = "error"; }else if(item["serviceStatus"]=="processing"){ item["status"] = "processing"; + item["rate"] = 0; if(item["serviceDomain"]=="Network Service"){ let updata = (prodata)=>{ - item["rate"] = prodata.progress; + item["rate"] = prodata.progress || item["rate"]; // >100 err if(item["rate"] > 100){ item["status"]=prodata.status; @@ -218,7 +219,7 @@ export class ServicesListComponent implements OnInit { }) }else{ let updata = (prodata)=>{ - item["rate"] = prodata.progress; + item["rate"] = prodata.progress || item["rate"]; if(item["rate"] > 100){ item["status"]=prodata.status; } -- cgit 1.2.3-korg