Files
baserow/web-frontend/modules/core/components/Error.vue
T

21 lines
352 B
Vue

<template>
<Alert v-if="error.visible" type="error">
<template #title>{{ error.title }}</template>
<p>{{ error.message }}</p>
</Alert>
</template>
<script>
/**
* This component works the best if the parent has the error mixin.
*/
export default {
props: {
error: {
required: true,
type: Object,
},
},
}
</script>