diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c225a105..5e6a1089 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -47,8 +47,6 @@ CURRENT TODOs todo: Make functional user settings form with all overrides so can test shit out -todo: Need a browser check on opening the login page that will check to ensure the browser can do the date conversions properly etc and -tell user browser is unsuitable if it isn't todo: SEARCH UI diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index b1f3600f..3bf6479e 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -470,7 +470,6 @@ export default { lt(ltKey) { return window.$gz.locale.get(ltKey); }, - getDataFromApi() { var vm = this; if (vm.loading) { @@ -491,6 +490,9 @@ export default { } vm.loading = true; + //Weird bug that causes grid to show all items selected after async method runs below to fetch data + //this puts a pin in it then resets it after the fetch is completed + var preSelected = [...vm.selected]; window.$gz.api .upsert(vm.apiBaseUrl, { @@ -514,6 +516,8 @@ export default { vm.records = buildRecords(res.data, res.columns); vm.loading = false; vm.totalRecords = res.totalRecordCount; + //Put back selected items + vm.selected = [...preSelected]; //persist the paging options and listview stuff so user sees same page and list on refresh or leave and return scenario saveFormSettings(vm); @@ -531,8 +535,6 @@ export default { //loadFormSettings(vm); vm.loading = false; vm.getDataFromApi(); - - //vm.getDataFromApi(); }); } };