blob: d31d673de2c4f0e2fc8a3c3b8a7902601b14f7bd [file] [log] [blame]
Derick Montaguefd22b5b2020-03-13 15:15:43 -05001<template>
Yoshie Muranaka1f9ed4c2020-03-26 16:59:54 -07002 <b-alert :show="show" :variant="variant" :class="{ small }">
Derick Montaguefd22b5b2020-03-13 15:15:43 -05003 <div v-if="variant == 'warning' || variant == 'danger'" class="alert-icon">
4 <status-icon :status="variant" />
5 </div>
6 <div class="alert-content">
7 <div class="alert-msg"><slot /></div>
8 </div>
9 </b-alert>
10</template>
11
12<script>
13import StatusIcon from '../Global/StatusIcon';
14import { BAlert } from 'bootstrap-vue';
15
16export default {
17 name: 'Alert',
18 components: {
19 BAlert: BAlert,
20 StatusIcon: StatusIcon
21 },
22 props: {
23 show: {
24 type: Boolean,
25 default: true
26 },
27 variant: {
28 type: String,
29 default: ''
Yoshie Muranaka1f9ed4c2020-03-26 16:59:54 -070030 },
31 small: Boolean
Derick Montaguefd22b5b2020-03-13 15:15:43 -050032 }
33};
34</script>