diff options
author | phani.y <yellela.nagaphanindra@huawei.com> | 2020-03-25 15:42:53 +0530 |
---|---|---|
committer | yellela nagaphanindra <yellela.nagaphanindra@huawei.com> | 2020-03-25 11:01:03 +0000 |
commit | dba6524875ebb7c0835d4eace5bc27c03763d4a1 (patch) | |
tree | 0974b6746f5f4fce7d06c5310373c178abd93974 /usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts | |
parent | 5d6c30fdbfa3d4f15b702652c48107b413a73fff (diff) |
Service Topology Changes3.0.1
Issue-ID: USECASEUI-419
Signed-off-by: phani.y <yellela.nagaphanindra@huawei.com>
Change-Id: I4f2d8a5a6309de92acd9384d499a285306036ebf
Diffstat (limited to 'usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts b/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts index d770eb06..1cfd00fd 100644 --- a/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts +++ b/usecaseui-portal/src/app/views/services/sotn-management/order-service/order-service.component.ts @@ -20,7 +20,6 @@ export class OrderServiceComponent implements OnInit { siteData:object = {}; buttonDisabled:boolean = false; intervalData:any; - // baseUrl:string = '/api/usecaseui-server/v1'; baseUrl = baseUrl.baseUrl expandDataSet = [ { rowIdx: 1, name: 'i18nTextDefine_serviceInformation', expand: true }, @@ -59,6 +58,7 @@ export class OrderServiceComponent implements OnInit { }); } + numberOnly(event): boolean { const charCode = (event.which) ? event.which : event.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { @@ -121,6 +121,10 @@ export class OrderServiceComponent implements OnInit { this.l2vpn["l2vpn_reroute"] == null) { return false; } + // for (const i in this.validateForm.controls) { + // this.validateForm.controls[i].markAsDirty(); + // this.validateForm.controls[i].updateValueAndValidity(); + // } return true; } @@ -135,13 +139,19 @@ export class OrderServiceComponent implements OnInit { 'Content-Type': 'application/json', }) }; + let url1 = this.baseUrl + '/uui-lcm/Sotnservices_unni'; this.http.post<any>(url1, body, httpOptions).subscribe((data) => { let comp = this; this.message.info('Instantiation In Progress'); this.intervalData = setInterval(() => { + const httpOptions1 = { + headers: new HttpHeaders({ + 'Content-Type': 'application/json', + }) + }; let url2 = this.baseUrl + "/uui-lcm/Sotnservices/serviceStatus/service-instance/" + data.service.serviceId; - this.http.get<any>(url2, {}).subscribe((data) => { + this.http.get<any>(url2, httpOptions1).subscribe((data) => { if (data.status == "1") { clearInterval(comp.intervalData); comp.message.success('Service Created'); |