This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "REALITY" All in on porting over all the real objects from v7
|
||||
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "MAKE IT HAPPEN" All in on porting over all the real objects from v7
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
“Accept the things to which fate binds you, and love the people with whom fate brings you together,but do so with all your heart.”
|
||||
― Marcus Aurelius, Meditations
|
||||
@@ -10,6 +10,10 @@
|
||||
## ROUGH SCHEDULE
|
||||
|
||||
GetLastReport is not implemented anywhere but is useful adn key
|
||||
lastreport new icon or no icon or...??
|
||||
Erase all data / generate data should maybe also erase all local cached browser data like ?reset ??
|
||||
or maybe not, this is related to reports which I think don't clear in erasedatabase??
|
||||
|
||||
new testing cases
|
||||
Schedule form
|
||||
Dashboard / widgets
|
||||
|
||||
@@ -1291,7 +1291,7 @@ async function fetchSavedFilterList(vm) {
|
||||
////////////////////
|
||||
//
|
||||
function saveFormSettings(vm) {
|
||||
window.$gz.form.setFormSettings(vm.formKey, {
|
||||
let newFormSettings = {
|
||||
temp: { page: vm.dataTablePagingOptions.page },
|
||||
saved: {
|
||||
itemsPerPage: vm.dataTablePagingOptions.itemsPerPage,
|
||||
@@ -1299,7 +1299,18 @@ function saveFormSettings(vm) {
|
||||
activeFilterId: vm.activeFilterId
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
//preserve anything not directly related to datatable
|
||||
//for now it's just the last report so nothing fancy here
|
||||
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||
console.log("datatable-saveformsettings fetched is:", formSettings);
|
||||
if (formSettings != null && formSettings.saved != null) {
|
||||
if (formSettings.saved.lastReport != null) {
|
||||
newFormSettings.lastReport = formSettings.saved.lastReport;
|
||||
}
|
||||
}
|
||||
window.$gz.form.setFormSettings(vm.formKey, newFormSettings);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
@@ -185,6 +185,7 @@ export default new Vuex.Store({
|
||||
state.formSettings = {};
|
||||
},
|
||||
setFormSettings(state, data) {
|
||||
console.log("Store::setformsettings", data);
|
||||
state.formSettings[data.formKey] = data.formSettings;
|
||||
},
|
||||
clearFormSettings(state, formKey) {
|
||||
|
||||
Reference in New Issue
Block a user