From 611c9da62c2e266f9facd97dc9f340ce311060a3 Mon Sep 17 00:00:00 2001 From: asgar Date: Fri, 1 Mar 2019 15:32:47 +0530 Subject: multiple asible servers support multiple asible servers support for CDT Issue-ID: APPC-1510 Change-Id: Id1b1b02274487cfbf6f108a57211a192924a6b08 Signed-off-by: Mohamed Asgar Samiulla --- .../reference-dataform/reference-dataform.util.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts') diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts index 00e014c..bb564b7 100644 --- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts +++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.ts @@ -26,7 +26,7 @@ import {Observable} from 'rxjs'; import {UtilityService} from '../../../shared/services/utilityService/utility.service'; import { environment } from '../../../../environments/environment'; import { HttpUtilService } from '../../../shared/services/httpUtil/http-util.service'; -//import {APIService} from "../../../shared/services/cdt.apicall"; +import {APIService} from "../../../shared/services/cdt.apicall"; @Injectable() export class ReferenceDataFormUtil { @@ -35,9 +35,7 @@ export class ReferenceDataFormUtil { private failureMessage = 'There is no artifact saved in APPC for the selected action!'; private response: Observable; - constructor( - private notificationService: NotificationsService, private utilityService:UtilityService, private httpUtils: HttpUtilService - ) { + constructor(private notificationService: NotificationsService, private utilityService:UtilityService, private apiService: APIService) { } checkResult(result: any) { @@ -154,13 +152,10 @@ export class ReferenceDataFormUtil { return paramValue; } - handleApiData(payloadData,artifactType) + handleApiData(data,artifactType) { - this.response = - this.httpUtils.post({ - url: environment.getDesigns, - data: payloadData }); - this.response.subscribe( response => { + this.response = this.apiService.callGetArtifactsApi(data); + this.response.subscribe(response => { this.utilityService.processApiSubscribe(response, this.utilityService.putAction, artifactType) }, error => this.utilityService.processApiError()); -- cgit 1.2.3-korg