This commit is contained in:
@@ -165,8 +165,7 @@
|
||||
<v-flex xs12 px-2>
|
||||
<gz-custom-fields
|
||||
:formKey="formCustomTemplateKey"
|
||||
v-bind:customfielddata.sync="obj.customFields"
|
||||
|
||||
v-bind:value.sync="obj.customFields"
|
||||
:readOnly="this.formState.readOnly"
|
||||
ref="customFields"
|
||||
:error-messages="this.$gzform.serverErrors(this, 'customFields')"
|
||||
@@ -199,7 +198,7 @@
|
||||
|
||||
<script>
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const FORM_KEY = "inventory-widget-edit";
|
||||
@@ -208,7 +207,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "widget";
|
||||
|
||||
export default {
|
||||
beforeCreate() {
|
||||
//console.log("BEFORECREATE: TOP");
|
||||
console.log("BEFORECREATE: TOP");
|
||||
var vm = this;
|
||||
initForm(this)
|
||||
.then(() => {
|
||||
@@ -618,11 +617,17 @@ var JUST_DELETED = false;
|
||||
//////////////////////
|
||||
//
|
||||
//
|
||||
// function initForm(vm) {
|
||||
// return fetchLocaleText(vm).then(
|
||||
// populatePickLists(vm).then(
|
||||
// vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
|
||||
// )
|
||||
// );
|
||||
// }
|
||||
|
||||
function initForm(vm) {
|
||||
return fetchLocaleText(vm).then(
|
||||
populatePickLists(vm).then(
|
||||
vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
|
||||
)
|
||||
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(fetchLocaleText(vm).then(
|
||||
populatePickLists(vm))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user