This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user