parsley/app/javascript/components/AppValidationErrors.vue

19 lines
316 B
Vue
Raw Normal View History

2018-06-09 12:36:46 -05:00
<template>
<div>
<div class="notification is-danger" v-if="errors !== null" v-for="(errs, prop) in errors">
{{ prop }}: {{ errs.join(", ") }}
</div>
</div>
</template>
2024-10-01 09:32:09 -05:00
<script setup>
2018-06-09 12:36:46 -05:00
2024-10-01 09:32:09 -05:00
const props = defineProps({
errors: {
required: false,
type: Object,
default: {}
2018-06-09 12:36:46 -05:00
}
2024-10-01 09:32:09 -05:00
});
2018-06-09 12:36:46 -05:00
</script>