diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e1b26ec7..a735ee27 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -58,8 +58,7 @@ SHELL / NAV / MENUS / LAYOUT - TOOD: - - SERVER: Keep data filter routes and stuff at server pretty much as is but keep in mind they are only for the client's consumption - - SERVER: needs relative date tokens back again but simply for validation to ensure they are correct tokens when storing a datafilter + - SERVER: DataList fetcher ListOptions no longer uses datafilterid anymore nor does any part of datalist code, instead they accept a single sort and filter json fragment - SERVER: DataList controller get list route change from GET to POST - SERVER: DataList controller get list route change from query string properties for listoptions to POST in FORM options (since much bigger) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index c9ab9256..2e030f07 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -390,13 +390,9 @@ export default { //build that.headers here that.headers = buildHeaders(res.columns); //Post process data here and then set that.records - that.records = buildRecords( - res.data, - res.columns, - that.$options.filters //this is the VUE filters collection, nothing to do with the local data structure - ); + that.records = buildRecords(res.data, res.columns); that.loading = false; - that.totalRecords = res.paging.count; + that.totalRecords = res.totalRecordCount; //persist the paging options so user sees same page and list on refresh or leave and return scenario @@ -445,7 +441,7 @@ function buildHeaders(columnData) { } //Called by getDataFromApi on retrieval of list with columnData -function buildRecords(listData, columndefinitions, filters) { +function buildRecords(listData, columndefinitions) { //iterate data, build each object keyed with index name and display set to correct locale filter and then return if (!listData) { return;