From eedac3e312c66499ca5ff9d72388c31b25813225 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Wed, 6 Mar 2019 12:11:34 -0800 Subject: Revert "multiple asible servers support" Some functionality was accidentally removed This reverts commit 611c9da62c2e266f9facd97dc9f340ce311060a3. Change-Id: I1aefbbc0ede8cdda59acc8bdf7b047e506aad813 Signed-off-by: Patrick Brady Issue-ID: APPC-1510 --- .../reference-dataform/reference-dataform.util.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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 bb564b7..00e014c 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,7 +35,9 @@ 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 apiService: APIService) { + constructor( + private notificationService: NotificationsService, private utilityService:UtilityService, private httpUtils: HttpUtilService + ) { } checkResult(result: any) { @@ -152,10 +154,13 @@ export class ReferenceDataFormUtil { return paramValue; } - handleApiData(data,artifactType) + handleApiData(payloadData,artifactType) { - this.response = this.apiService.callGetArtifactsApi(data); - this.response.subscribe(response => { + this.response = + this.httpUtils.post({ + url: environment.getDesigns, + data: payloadData }); + this.response.subscribe( response => { this.utilityService.processApiSubscribe(response, this.utilityService.putAction, artifactType) }, error => this.utilityService.processApiError()); -- cgit 1.2.3-korg