This commit is contained in:
2019-07-12 19:38:35 +00:00
parent ec2897b4d4
commit 23d56d91d7
2 changed files with 10 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<div> <div v-if="this.$store.state.formCustomTemplate[formKey]">
<span class="v-label v-label--active theme--light"> <span class="v-label v-label--active theme--light">
{{ this.$gzlocale.get("ObjectCustomFieldCustomGrid") }} {{ this.$gzlocale.get("ObjectCustomFieldCustomGrid") }}
</span> </span>
@@ -17,7 +17,14 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */ /* Xeslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
*
* TODO: have the template, have the custom field data, now just need to show it all properly and update the fragment of json when changes made which then updates the
* parent object.
*
*
*
*/
export default { export default {
data() { data() {
return { return {
@@ -54,10 +61,6 @@ export default {
if (!this.formKey) { if (!this.formKey) {
throw "custom-fields-control: formKey property is required and missing"; throw "custom-fields-control: formKey property is required and missing";
} }
if (!this.$store.state.formCustomTemplate[this.formKey]) {
throw "custom-fields-control: formCustomTemplate not in the Store!";
}
} }
} }
}; };

View File

@@ -620,7 +620,7 @@ function initForm(vm) {
return fetchLocaleText(vm).then( return fetchLocaleText(vm).then(
populatePickLists(vm).then( populatePickLists(vm).then(
vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY) vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
) )
); );
} }
@@ -636,7 +636,6 @@ function populatePickLists(vm) {
}); });
} }
////////////////////// //////////////////////
// //
// //