Files
baserow/web-frontend/modules/core/components/Error.vue
T
2023-09-28 13:39:41 +00:00

24 lines
364 B
Vue

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