From 876b4794e0a391cf5bcd7613f8f356a6247c247b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 8 Mar 2021 15:56:02 +0000 Subject: [PATCH] --- ayanova/src/api/gzform.js | 11 +++++++++++ ayanova/src/components/tag-picker.vue | 6 +++++- ayanova/src/views/svc-contract.vue | 10 ++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index 59cdbf2b..4295fc48 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -716,6 +716,17 @@ export default { }); }, /////////////////////////////// + // childRowErrorClass + // returns class to set on row if error exists for row + // else returns nothing + // + childRowErrorClass(vm, collectionName, rowIndex) { + if (this.childRowHasError(vm, collectionName, rowIndex)) { + return "font-weight-black font-italic error--text"; + } + return null; + }, + /////////////////////////////// // ShowMe // (returns false if the field has been set to hidden by the user in the formcustomtemplate) // NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden diff --git a/ayanova/src/components/tag-picker.vue b/ayanova/src/components/tag-picker.vue index b652b7cd..246ff77c 100644 --- a/ayanova/src/components/tag-picker.vue +++ b/ayanova/src/components/tag-picker.vue @@ -17,6 +17,8 @@ chips deletable-chips cache-items + :rules="rules" + :error-messages="errorMessages" >