Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add logic to error message
Browse files Browse the repository at this point in the history
davidma415 committed Apr 15, 2024
1 parent 77e274c commit 0bd72a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/ErrorMessage.vue
Original file line number Diff line number Diff line change
@@ -11,6 +11,13 @@
</ul>
</template>
<template v-else #default>{{ errorMessage }}</template>
<template v-if="passwordRequirements.length" #alertMessage>
<p>{{ capitalizeFirstChar(errorMessage) }}:</p>
<ul>
<li v-for="(error, idx) in passwordRequirements" :key="idx">{{ capitalizeFirstChar(error) }}</li>
</ul>
</template>
<template v-else #alertMessage>{{ errorMessage }}</template>
</KAlert>
</template>

0 comments on commit 0bd72a4

Please sign in to comment.