mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 01:08:32 +00:00
24 lines
487 B
Vue
24 lines
487 B
Vue
<template>
|
|
<div v-if="error.visible" class="alert alert--error alert--has-icon">
|
|
<div class="alert__icon">
|
|
<i class="fas fa-exclamation"></i>
|
|
</div>
|
|
<div class="alert__title">{{ error.title }}</div>
|
|
<p class="alert__content">{{ error.message }}</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
/**
|
|
* This component works the best if the parent has the error mixin.
|
|
*/
|
|
export default {
|
|
props: {
|
|
error: {
|
|
required: true,
|
|
type: Object,
|
|
},
|
|
},
|
|
}
|
|
</script>
|