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

25 lines
461 B
Vue

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