From 54d46e09d872161a5192fc982c4dfcd2b4e1f1e1 Mon Sep 17 00:00:00 2001 From: Charlton Austin Date: Thu, 4 May 2017 13:32:50 -0400 Subject: [PATCH] fix(frontend): fix data binding ### Description of Changes there was a bug in the applications sorting --- .../ui/app-public-view/app-public-view.component.html | 6 +++--- .../js/directives/ui/cor-table/cor-table-col.component.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/directives/ui/app-public-view/app-public-view.component.html b/static/js/directives/ui/app-public-view/app-public-view.component.html index b406d1351..ea4adaa13 100644 --- a/static/js/directives/ui/app-public-view/app-public-view.component.html +++ b/static/js/directives/ui/app-public-view/app-public-view.component.html @@ -54,7 +54,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} --channel {chann templateurl="/static/js/directives/ui/app-public-view/channel-name.html"> @@ -77,7 +77,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} {{ $ctrl.Config. @@ -114,7 +114,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} {{ $ctrl.Config. diff --git a/static/js/directives/ui/cor-table/cor-table-col.component.ts b/static/js/directives/ui/cor-table/cor-table-col.component.ts index e9505c237..fcda31d89 100644 --- a/static/js/directives/ui/cor-table/cor-table-col.component.ts +++ b/static/js/directives/ui/cor-table/cor-table-col.component.ts @@ -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); }