summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2018-11-26 14:57:36 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2018-11-26 14:57:58 +0800
commitc47567bca46298b007c2c013a28ced6e2f8ff023 (patch)
treeb2054b8385d69d64a661a238bb0a616c2114a297
parent87374174d78e927f6104062d8fa9d66b315e6e73 (diff)
Fix E2E Service Instantiation bugs
Change-Id: I2f2ff9a58102390d63bd9f7ebe016056bde696b8 Issue-ID: USECASEUI-179 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/services/services-list/services-list.component.ts5
1 files changed, 3 insertions, 2 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 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;
}