fix(frontend): fix data binding
### Description of Changes there was a bug in the applications sorting
This commit is contained in:
parent
a78d5fb9ff
commit
54d46e09d8
2 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} --channel {chann
|
||||||
templateurl="/static/js/directives/ui/app-public-view/channel-name.html"></cor-table-col>
|
templateurl="/static/js/directives/ui/app-public-view/channel-name.html"></cor-table-col>
|
||||||
<cor-table-col datafield="release" sortfield="release" title="Current Release"></cor-table-col>
|
<cor-table-col datafield="release" sortfield="release" title="Current Release"></cor-table-col>
|
||||||
<cor-table-col datafield="last_modified" sortfield="last_modified" title="Last Modified"
|
<cor-table-col datafield="last_modified" sortfield="last_modified" title="Last Modified"
|
||||||
selected="true" dataKind="datetime"
|
selected="true" kindof="datetime"
|
||||||
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
||||||
</cor-table>
|
</cor-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,7 +77,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} {{ $ctrl.Config.
|
||||||
<cor-table-col datafield="name" sortfield="name" title="Name"></cor-table-col>
|
<cor-table-col datafield="name" sortfield="name" title="Name"></cor-table-col>
|
||||||
<cor-table-col datafield="last_modified" sortfield="last_modified"
|
<cor-table-col datafield="last_modified" sortfield="last_modified"
|
||||||
title="Created"
|
title="Created"
|
||||||
selected="true" dataKind="datetime"
|
selected="true" kindof="datetime"
|
||||||
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
||||||
<cor-table-col datafield="channels" title="Channels"
|
<cor-table-col datafield="channels" title="Channels"
|
||||||
templateurl="/static/js/directives/ui/app-public-view/channels-list.html"></cor-table-col>
|
templateurl="/static/js/directives/ui/app-public-view/channels-list.html"></cor-table-col>
|
||||||
|
@ -114,7 +114,7 @@ helm registry push --namespace {{ $ctrl.repository.namespace }} {{ $ctrl.Config.
|
||||||
<cor-table-col datafield="name" sortfield="name" title="Name"></cor-table-col>
|
<cor-table-col datafield="name" sortfield="name" title="Name"></cor-table-col>
|
||||||
<cor-table-col datafield="last_modified" sortfield="last_modified"
|
<cor-table-col datafield="last_modified" sortfield="last_modified"
|
||||||
title="Created"
|
title="Created"
|
||||||
selected="true" dataKind="datetime"
|
selected="true" kindof="datetime"
|
||||||
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
templateurl="/static/js/directives/ui/app-public-view/last-modified.html"></cor-table-col>
|
||||||
</cor-table>
|
</cor-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@ export class CorTableColumn implements OnInit {
|
||||||
@Input('@') public datafield: string;
|
@Input('@') public datafield: string;
|
||||||
@Input('@') public sortfield: string;
|
@Input('@') public sortfield: string;
|
||||||
@Input('@') public selected: string;
|
@Input('@') public selected: string;
|
||||||
@Input('@') public dataKind: string;
|
@Input('@') public kindof: string;
|
||||||
|
|
||||||
constructor(@Host() @Inject(CorTableComponent) private parent: CorTableComponent) {
|
constructor(@Host() @Inject(CorTableComponent) private parent: CorTableComponent) {
|
||||||
|
|
||||||
|
@ -26,11 +26,11 @@ export class CorTableColumn implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public isNumeric(): boolean {
|
public isNumeric(): boolean {
|
||||||
return this.dataKind == 'datetime';
|
return this.kindof == 'datetime';
|
||||||
}
|
}
|
||||||
|
|
||||||
public processColumnForOrdered(tableService: any, value: any): any {
|
public processColumnForOrdered(tableService: any, value: any): any {
|
||||||
if (this.dataKind == 'datetime') {
|
if (this.kindof == 'datetime') {
|
||||||
return tableService.getReversedTimestamp(value);
|
return tableService.getReversedTimestamp(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue