This commit is contained in:
2019-07-19 19:41:58 +00:00
parent 177f08f49d
commit 7bbe2bd315
22 changed files with 191 additions and 192 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="this.$store.state.formCustomTemplate[formKey]">
<span class="v-label v-label--active theme--light">
{{ this.$gzlocale.get("ObjectCustomFieldCustomGrid") }}
{{ lt("ObjectCustomFieldCustomGrid") }}
</span>
<!-- <div>
<h5>FORMKEY: {{ formKey }}</h5>
@@ -128,7 +128,7 @@ export default {
},
methods: {
lt: function(ltkey) {
return this.$gzlocale.get(ltkey);
return window.$gz.locale.get(ltkey);
},
GetValueForField: function(dataKey) {
if (!this.value) {
@@ -171,11 +171,11 @@ export default {
// console.log("custom-fields-control::BEFORECREATE: TOP");
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (!this.$_) {
throw "custom-fields-control: $_ (lodash) is required and missing";
if (!window.$gz._) {
throw "custom-fields-control: $gz._ (lodash) is required and missing";
}
if (!this.$gzlocale) {
throw "custom-fields-control: $gzlocale is required and missing";
if (!window.$gz.locale) {
throw "custom-fields-control: $gz.locale is required and missing";
}
}