[Readme] Pushed readme and fixed errors

This commit is contained in:
Matej Glasnák committed 2022-11-22 12:43:08 +01:00
1 parent d76f4258f7
commit 9af01fc34b
3 files changed
+14 -2

No files matched your search

@@ -1,7 +1,7 @@
export default {
parseErrors(errors) {
// @ts-ignore
// @ts-expect-error
return Object.values(errors).map(error => error?.$message).join(', ')
}
}
@@ -1,6 +1,6 @@
<template>
<v-form>
<v-text-field v-model="form.email" label="E-mail" variant="solo" autocomplete="off" class="mb-2" bg-color="white" :hint="v$.form.email.$errors ? parseErrors(v$.form.email.$errors) : null" :class="{ error: v$.form.email.$errors.length }" />
<v-text-field v-model="form.email" label="E-mail" variant="solo" autocomplete="off" class="mb-2" bg-color="white" :hint="v$.form.email.$errors ? errorUtils.parseErrors(v$.form.email.$errors) : null" :class="{ error: v$.form.email.$errors.length }" />
<v-text-field v-model="form.password" :type="showPassword ? 'text' : 'password'" variant="solo" bg-color="white" class="mb-2" :counter="8" label="Heslo" autocomplete="off" :hint="v$.form.password.$errors ? errorUtils.parseErrors(v$.form.password.$errors) : null"
:class="{ error: v$.form.password.$errors.length }" :append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'" @click:append="showPassword = !showPassword" />