mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-30 04:03:18 +01:00
23 lines
473 B
Vue
23 lines
473 B
Vue
<template>
|
|
<div role="alert">
|
|
<p :id="'valError' + field[0].toUpperCase() + field.toLowerCase().slice(1)" class="help is-danger" v-if="form.errors.has(field)" v-html="form.errors.get(field)" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'field-error',
|
|
|
|
props: {
|
|
form: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
|
|
field: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
}
|
|
}
|
|
</script> |