X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fpackages%2Fns-packages%2FNSPackagesComponent.ts;h=8960497cd923be64635f99ce4987d9fbc0e4b8be;hb=319d328d0bbb1e156ac767851c8c33acb518dc94;hp=46366e0979594c1cf4bc035669764c095c311bae;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/packages/ns-packages/NSPackagesComponent.ts b/src/app/packages/ns-packages/NSPackagesComponent.ts index 46366e0..8960497 100644 --- a/src/app/packages/ns-packages/NSPackagesComponent.ts +++ b/src/app/packages/ns-packages/NSPackagesComponent.ts @@ -126,13 +126,13 @@ export class NSPackagesComponent implements OnInit { /** smart table Header Colums @public */ public generateColumns(): void { this.columnLists = { - shortName: { title: this.translateService.instant('SHORTNAME'), width: '15%', sortDirection: 'asc' }, - identifier: { title: this.translateService.instant('IDENTIFIER'), width: '20%' }, - description: { title: this.translateService.instant('DESCRIPTION'), width: '25%' }, - vendor: { title: this.translateService.instant('VENDOR'), width: '15%' }, + name: { title: this.translateService.instant('NAME'), width: '15%', sortDirection: 'asc' }, + identifier: { title: this.translateService.instant('IDENTIFIER'), width: '15%' }, version: { title: this.translateService.instant('VERSION'), width: '10%' }, + designer: { title: this.translateService.instant('DESIGNER'), width: '15%' }, + description: { title: this.translateService.instant('DESCRIPTION'), width: '25%' }, Actions: { - name: 'Actions', width: '15%', filter: false, sort: false, type: 'custom', + name: 'Actions', width: '20%', filter: false, sort: false, type: 'custom', title: this.translateService.instant('ACTIONS'), valuePrepareFunction: (cell: NSData, row: NSData): NSData => row, renderComponent: NsPackagesActionComponent } @@ -212,11 +212,11 @@ export class NSPackagesComponent implements OnInit { /** Generate nsData object from loop and return for the datasource @public */ public generateNSData(nsdpackagedata: NSDDetails): NSData { return { - shortName: nsdpackagedata['short-name'], + name: nsdpackagedata.name, identifier: nsdpackagedata._id, description: nsdpackagedata.description, - vendor: nsdpackagedata.vendor, - version: nsdpackagedata.version + version: nsdpackagedata.version, + designer: nsdpackagedata.designer !== undefined ? nsdpackagedata.designer : '-' }; } @@ -246,6 +246,7 @@ export class NSPackagesComponent implements OnInit { } /** Handle compose new ns package method @public */ public composeNSPackage(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename this.modalService.open(ComposePackages, { backdrop: 'static' }).componentInstance.params = { page: 'ns-package' }; }