From e9e6daa76e6adee236e643cc45deee0d2c7ee542 Mon Sep 17 00:00:00 2001
From: taehoon <th.dev91@gmail.com>
Date: Thu, 25 Apr 2019 04:22:34 -0400
Subject: show text in progress only when slot is given

---
 src/components/progress_button/progress_button.vue | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'src/components/progress_button/progress_button.vue')

diff --git a/src/components/progress_button/progress_button.vue b/src/components/progress_button/progress_button.vue
index d19aa97d..c2f4a894 100644
--- a/src/components/progress_button/progress_button.vue
+++ b/src/components/progress_button/progress_button.vue
@@ -1,9 +1,6 @@
 <template>
-  <button
-    :disabled="progress || disabled"
-    @click="onClick"
-  >
-    <template v-if="progress">
+  <button :disabled="progress || disabled" @click="onClick">
+    <template v-if="progress && !!$slots.progress">
       <slot name="progress" />
     </template>
     <template v-else>
-- 
cgit v1.2.3-70-g09d2

