From 9ccb8a9768d90376d33b37d817929b916f405042 Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Wed, 15 Jul 2020 13:15:05 -0700
Subject: Add slot for an optional action in Alert component

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ia2891eaf6e22c367d3080a9a3cb2eff0a27563bf
---
 src/components/Global/Alert.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/components/Global/Alert.vue')

diff --git a/src/components/Global/Alert.vue b/src/components/Global/Alert.vue
index d31d673d..2008536a 100644
--- a/src/components/Global/Alert.vue
+++ b/src/components/Global/Alert.vue
@@ -3,9 +3,12 @@
     <div v-if="variant == 'warning' || variant == 'danger'" class="alert-icon">
       <status-icon :status="variant" />
     </div>
-    <div class="alert-content">
+    <div class="alert-content d-inline-flex align-items-center">
       <div class="alert-msg"><slot /></div>
     </div>
+    <div class="alert-action d-inline-flex align-items-center">
+      <slot name="action"></slot>
+    </div>
   </b-alert>
 </template>
 
-- 
cgit v1.2.3

