Fix sorting info bug when Buefy grid doesn't support it

This commit is contained in:
Lance Edgar 2019-05-08 15:37:03 -05:00
parent 73eec8f112
commit 98428bf8c2

View file

@ -165,12 +165,15 @@
return {
data: ${json.dumps(grid_data['data'])|n},
loading: false,
sortField: '${grid.sortkey}',
sortOrder: '${grid.sortdir}',
rowStatusMap: ${json.dumps(grid_data['row_status_map'])|n},
## TODO: should be dumping json from server here
checkedRows: [],
% if grid.sortable:
sortField: '${grid.sortkey}',
sortOrder: '${grid.sortdir}',
% endif
% if grid.pageable:
% if static_data:
total: ${len(grid_data['data'])},