projects
/
osm
/
NG-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2296: Newly Created Ns should come first in NG-UI
[osm/NG-UI.git]
/
src
/
app
/
instances
/
ns-instances
/
NSInstancesComponent.ts
diff --git
a/src/app/instances/ns-instances/NSInstancesComponent.ts
b/src/app/instances/ns-instances/NSInstancesComponent.ts
index
5cc5519
..
e7de4a7
100644
(file)
--- a/
src/app/instances/ns-instances/NSInstancesComponent.ts
+++ b/
src/app/instances/ns-instances/NSInstancesComponent.ts
@@
-144,9
+144,13
@@
export class NSInstancesComponent implements OnInit {
/** Generate smart table row title and filters @public */
public generateTableColumn(): void {
this.columnList = {
/** Generate smart table row title and filters @public */
public generateTableColumn(): void {
this.columnList = {
- name: { title: this.translateService.instant('NAME'), width: '15%'
, sortDirection: 'asc'
},
+ name: { title: this.translateService.instant('NAME'), width: '15%' },
identifier: { title: this.translateService.instant('IDENTIFIER'), width: '20%' },
NsdName: { title: this.translateService.instant('NSDNAME'), width: '15%' },
identifier: { title: this.translateService.instant('IDENTIFIER'), width: '20%' },
NsdName: { title: this.translateService.instant('NSDNAME'), width: '15%' },
+ 'create-time': {
+ title: this.translateService.instant('DATE'), width: '15%', sortDirection: 'desc',
+ compareFunction: this.sharedService.compareFunction
+ },
OperationalStatus: {
title: this.translateService.instant('OPERATIONALSTATUS'), width: '10%', type: 'html',
filter: {
OperationalStatus: {
title: this.translateService.instant('OPERATIONALSTATUS'), width: '10%', type: 'html',
filter: {
@@
-244,7
+248,8
@@
export class NSInstancesComponent implements OnInit {
nsd: nsdInstanceData.nsd,
'nsd-id': nsdInstanceData['nsd-id'],
vcaStatus: nsdInstanceData.vcaStatus,
nsd: nsdInstanceData.nsd,
'nsd-id': nsdInstanceData['nsd-id'],
vcaStatus: nsdInstanceData.vcaStatus,
- constituent: nsdInstanceData['constituent-vnfr-ref']
+ constituent: nsdInstanceData['constituent-vnfr-ref'],
+ 'create-time': this.sharedService.convertEpochTime(Number(nsdInstanceData['create-time']))
};
this.nsInstanceData.push(nsDataObj);
});
};
this.nsInstanceData.push(nsDataObj);
});