From d23a7fdba146fcc2f2c69352d30ba12e3d181bbd Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 4 Dec 2019 23:12:57 +0000 Subject: [PATCH] --- ayanova/src/api/form-custom-template.js | 2 +- .../src/components/custom-fields-control.vue | 5 +- ayanova/src/views/customize.vue | 236 ++++++++++++++++-- ayanova/src/views/inventory-widget-edit.vue | 10 +- 4 files changed, 222 insertions(+), 31 deletions(-) diff --git a/ayanova/src/api/form-custom-template.js b/ayanova/src/api/form-custom-template.js index 21544d30..3c75c600 100644 --- a/ayanova/src/api/form-custom-template.js +++ b/ayanova/src/api/form-custom-template.js @@ -1,4 +1,4 @@ -/*e slint-disable */ +/*Xeslint-disable */ ///Add data key names which make the custom fields control work more easily ///Since the names can be inferred from the data that comes from the server it saves bandwidth to do it here at the client diff --git a/ayanova/src/components/custom-fields-control.vue b/ayanova/src/components/custom-fields-control.vue index 2086f3c9..2bb497dc 100644 --- a/ayanova/src/components/custom-fields-control.vue +++ b/ayanova/src/components/custom-fields-control.vue @@ -12,7 +12,6 @@
--> -
+ +
+ + + + +
+
+ */ - window.$gz.locale.fetch(ltKeysRequired).then(next()); - }, - components: {}, - beforeCreate() { - window.$gz.eventBus.$emit("menu-change", { - isMain: true, - icon: "sliders-h", - title: window.$gz.locale.get("Customize") - }); - } -}; diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index 6e720f74..7283f1a6 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -236,7 +236,7 @@ //////////////////////////////////////////////////////////////////////////////////////////////////////////// //Illegal1 = O0 const FORM_KEY = "inventory-widget-edit"; -const FORM_BASE_URL = "Widget/"; +const API_BASE_URL = "Widget/"; const FORM_CUSTOM_TEMPLATE_KEY = "widget"; export default { @@ -445,7 +445,7 @@ export default { if (!recordId) { throw FORM_KEY + "::getDataFromApi -> Missing recordID!"; } - var url = FORM_BASE_URL + recordId; + var url = API_BASE_URL + recordId; var vm = this; window.$gz.form.deleteAllErrorBoxErrors(this); @@ -492,7 +492,7 @@ export default { if (this.canSave) { this.formState.loading = true; var vm = this; - var url = FORM_BASE_URL + this.$route.params.id; + var url = API_BASE_URL + this.$route.params.id; //clear any errors vm might be around from previous submit window.$gz.form.deleteAllErrorBoxErrors(this); @@ -547,7 +547,7 @@ export default { // navigate backwards vm.$router.go(-1); } else { - var url = FORM_BASE_URL + vm.$route.params.id; + var url = API_BASE_URL + vm.$route.params.id; window.$gz.form.deleteAllErrorBoxErrors(vm); window.$gz.api @@ -580,7 +580,7 @@ export default { if (this.canDuplicate && this.$route.params.id != 0) { this.formState.loading = true; var vm = this; - var url = FORM_BASE_URL + "duplicate/" + this.$route.params.id; + var url = API_BASE_URL + "duplicate/" + this.$route.params.id; //clear any errors vm might be around from previous submit window.$gz.form.deleteAllErrorBoxErrors(this);