X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fsdn-controller%2Fsdn-controller-details%2FSDNControllerDetailsComponent.ts;h=ef2f350985a24716f8a424b818cf785ed770dc71;hb=5b35bcd21392dc71d3a847ba3a20e9fcd38534f6;hp=125d0f4f47951c3457bfc45dbc4fcc431262070d;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/sdn-controller/sdn-controller-details/SDNControllerDetailsComponent.ts b/src/app/sdn-controller/sdn-controller-details/SDNControllerDetailsComponent.ts index 125d0f4..ef2f350 100644 --- a/src/app/sdn-controller/sdn-controller-details/SDNControllerDetailsComponent.ts +++ b/src/app/sdn-controller/sdn-controller-details/SDNControllerDetailsComponent.ts @@ -172,8 +172,7 @@ export class SDNControllerDetailsComponent implements OnInit, OnDestroy { } } }, - ip: { title: this.translateService.instant('IP'), width: '15%' }, - port: { title: this.translateService.instant('PORT'), width: '15%' }, + url: { title: this.translateService.instant('URL'), width: '30%' }, Actions: { name: 'Action', width: '5%', filter: false, sort: false, type: 'custom', title: this.translateService.instant('ACTIONS'), @@ -201,19 +200,21 @@ export class SDNControllerDetailsComponent implements OnInit, OnDestroy { identifier: sdn._id, type: sdn.type, operationalState: sdn._admin.operationalState, - ip: sdn.ip, - port: sdn.port + url: sdn.url }; } /** Compose new SDN Controller @public */ public composeSDN(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(NewSDNControllerComponent, { backdrop: 'static' }); modalRef.result.then((result: MODALCLOSERESPONSEDATA) => { if (result) { this.sharedService.callData(); } - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); } /** @@ -239,11 +240,12 @@ export class SDNControllerDetailsComponent implements OnInit, OnDestroy { } this.dataSource.load(this.sdnData).then((data: {}) => { this.isLoadingResults = false; - }).catch(); + }).catch((): void => { + // Catch Navigation Error + }); }, (error: ERRORDATA) => { this.restService.handleError(error, 'get'); this.isLoadingResults = false; }); } - }