This commit is contained in:
2019-07-19 19:57:41 +00:00
parent 5b94fd25e1
commit 43b955501a
12 changed files with 28 additions and 28 deletions

View File

@@ -26,7 +26,7 @@ export default {
.then(() => (this.formReady = true))
.catch(err => {
this.formReady = true;
this.$gzHandleFormError(err);
window.$gz.errorHandler.handleFormError(err);
});
},
data() {

View File

@@ -170,7 +170,7 @@ export default {
beforeCreate() {
// console.log("custom-fields-control::BEFORECREATE: TOP");
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (window.$gz.errorHandler.devMode()) {
if (!window.$gz._) {
throw "custom-fields-control: $gz._ (lodash) is required and missing";
}
@@ -185,7 +185,7 @@ export default {
},
created() {
// console.log("custom-fields-control::BEFORECREATE: TOP");
if (this.$gzdevmode()) {
if (window.$gz.errorHandler.devMode()) {
//debugger;
if (!this.formKey) {
throw "custom-fields-control: formKey property is required and missing";

View File

@@ -59,7 +59,7 @@ export default {
beforeCreate() {
//debugger;
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (window.$gz.errorHandler.devMode()) {
if (!window.$gz.dayjs) {
throw "DateTimeControl: the DayJS library is required and missing";
}

View File

@@ -146,7 +146,7 @@ export default {
})
.catch(err => {
that.formState.ready = true; //show the form anyway so we know what's what
that.$gzHandleFormError(err);
window.$gz.errorHandler.handleFormError(err);
});
},
data() {

View File

@@ -73,7 +73,7 @@ export default {
vm.tagSearchUnderway = false;
})
.catch(err => {
vm.$gzHandleFormError(err);
window.$gz.errorHandler.handleFormError(err);
});
},
value(val) {
@@ -103,7 +103,7 @@ export default {
},
beforeCreate() {
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (window.$gz.errorHandler.devMode()) {
if (!window.$gz._) {
throw "tag-picker: $gz._ (lodash) is required and missing";
}