This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
const FORM_KEY = "inventorywidgetlist";
|
||||
|
||||
export default {
|
||||
@@ -97,16 +97,19 @@ export default {
|
||||
});
|
||||
})
|
||||
.then(() => {
|
||||
//eslint-disable-next-line
|
||||
debugger;
|
||||
var storedFormSettings = that.$gzform.getFormSettings(FORM_KEY);
|
||||
console.log("IWL:beforeCreate storedFormSettings:");
|
||||
console.log(storedFormSettings);
|
||||
|
||||
//set default values for form settings if they are not present yet
|
||||
if (!storedFormSettings) {
|
||||
storedFormSettings = {
|
||||
pagination: {}
|
||||
};
|
||||
} else {
|
||||
that.localFormSettings = storedFormSettings;
|
||||
}
|
||||
that.localFormSettings = storedFormSettings;
|
||||
|
||||
that.formState.ready = true;
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -193,8 +196,8 @@ export default {
|
||||
that.localFormSettings.pagination &&
|
||||
that.localFormSettings.pagination.rowsPerPage
|
||||
) {
|
||||
//eslint-disable-next-line
|
||||
debugger;
|
||||
console.log("IWL: setting local formsettings as there is data:");
|
||||
console.log(that.localFormSettings);
|
||||
that.$gzform.setFormSettings(FORM_KEY, that.localFormSettings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user