This commit is contained in:
2020-02-25 23:25:55 +00:00
parent ff6683f7d5
commit 5482ef30cd
5 changed files with 44 additions and 20 deletions

View File

@@ -654,10 +654,17 @@ export default {
// and temporary ones are stored in session storage and don't persist a refresh
//
getFormSettings(formKey) {
return {
var formSettings = {
temp: JSON.parse(sessionStorage.getItem(formKey)),
saved: window.$gz.store.state.formSettings[formKey]
};
console.log(
"gzForm::getFormSettings list view id is:" +
window.$gz.store.state.formSettings["test-widgets"].dataTable.listViewId
);
return formSettings;
},
////////////////////////////////////
// Set form settings
@@ -682,6 +689,11 @@ export default {
if (formSettings.temp) {
sessionStorage.setItem(formKey, JSON.stringify(formSettings.temp));
}
console.trace();
console.log(
"gzForm::setFormSettings at bottom after commit, listviewid in store is:" +
window.$gz.store.state.formSettings["test-widgets"].dataTable.listViewId
);
}, ////////////////////////////////////
// Add no selection item
// Used by forms that need the option of an unselected