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