diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 99ba878b..e007a3ae 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -54,7 +54,8 @@ export default { "Print", "WikiPage", "Duplicate", - "RecordHistory" + "RecordHistory", + "ErrorFieldLengthExceeded" ], decimalValidate(required) { return { required: required, decimal: [2, this.formats.decimalSeparator] }; diff --git a/ayanova/src/main.js b/ayanova/src/main.js index b184b81b..692ec8c0 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -16,6 +16,7 @@ import dayjs from "dayjs"; import lodash from "./libs/lodash.min.js"; import locale from "./api/locale"; import gzapi from "./api/apiutil"; +import gzvalidate from "./api/gzvalidate"; ///////////////////////////////////////////////////////////////// // LIBS AND GLOBAL ITEMS @@ -25,6 +26,7 @@ Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs }); Object.defineProperty(Vue.prototype, "$_", { value: lodash }); Object.defineProperty(Vue.prototype, "$gzlocale", { value: locale }); Object.defineProperty(Vue.prototype, "$gzapi", { value: gzapi }); +Object.defineProperty(Vue.prototype, "$gzv", { value: gzvalidate }); Object.defineProperty(Vue.prototype, "$gzerror", { value: errorHandler.handleFormError }); diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index d1054d1b..ded5866c 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -1,12 +1,12 @@