This commit is contained in:
2020-03-03 23:15:53 +00:00
parent d3fcede9c8
commit ba95762de5
2 changed files with 5 additions and 5 deletions

View File

@@ -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();
});
}
};