fix(frontend): fix data binding

### Description of Changes

  there was a bug in the applications sorting
This commit is contained in:
Charlton Austin 2017-05-04 13:32:50 -04:00
parent a78d5fb9ff
commit 54d46e09d8
2 changed files with 6 additions and 6 deletions

View file

@ -15,7 +15,7 @@ export class CorTableColumn implements OnInit {
@Input('@') public datafield: string;
@Input('@') public sortfield: string;
@Input('@') public selected: string;
@Input('@') public dataKind: string;
@Input('@') public kindof: string;
constructor(@Host() @Inject(CorTableComponent) private parent: CorTableComponent) {
@ -26,11 +26,11 @@ export class CorTableColumn implements OnInit {
}
public isNumeric(): boolean {
return this.dataKind == 'datetime';
return this.kindof == 'datetime';
}
public processColumnForOrdered(tableService: any, value: any): any {
if (this.dataKind == 'datetime') {
if (this.kindof == 'datetime') {
return tableService.getReversedTimestamp(value);
}