From 85afa46354d2a1873894ad25f8c357bcf2b2e5b7 Mon Sep 17 00:00:00 2001 From: hieu-w Date: Fri, 26 Jul 2024 10:12:54 +0700 Subject: [PATCH 1/2] Update validation --- examples/vue-example/src/App.vue | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/examples/vue-example/src/App.vue b/examples/vue-example/src/App.vue index 4ed41a0b..640791d8 100644 --- a/examples/vue-example/src/App.vue +++ b/examples/vue-example/src/App.vue @@ -241,9 +241,11 @@ v-model="selectedMandatoryMFAFactors" class="mt-3" label="Select Mandatory MFA Factors" - aria-label="Select Mandatory MFA Factor" + aria-label="Select Mandatory MFA Factor" placeholder="Select Mandatory MFA Factor" - :multiple="true" + :helperText="!isValidMFASelection ? `One factor other than device factor must be mandatory` : ''" + :error="!isValidMFASelection" + :multiple="true" :show-check-box="true" :options=" Object.entries(MFA_FACTOR) @@ -457,6 +459,8 @@ label="Enter an email" aria-label="Enter an email" placeholder="Enter an email" + :error="!isLoginHintAvailable" + :helper-text="!isLoginHintAvailable ? `Email should be valid` : ''" required /> @@ -468,6 +472,8 @@ label="Eg: (+{cc}-{number})" aria-label="Eg: (+{cc}-{number})" placeholder="Eg: (+{cc}-{number})" + :error="!isLoginHintAvailable" + :helper-text="!isLoginHintAvailable ? `Phone should be valid` : ''" required /> @@ -475,7 +481,7 @@