This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user