Browse Source

fix: record workflow button not showing (#767)

Ahmad Kholid 2 years ago
parent
commit
dca8522c3f

+ 2 - 2
src/components/newtab/workflow/editor/EditorPkgActions.vue

@@ -9,7 +9,7 @@
         <ui-button
         <ui-button
           :class="{ 'text-primary': isPkgShared }"
           :class="{ 'text-primary': isPkgShared }"
           icon
           icon
-          type="transparent"
+          btn-type="transparent"
         >
         >
           <v-remixicon name="riShareLine" />
           <v-remixicon name="riShareLine" />
         </ui-button>
         </ui-button>
@@ -47,7 +47,7 @@
   <ui-card class="pointer-events-auto flex items-center" padding="p-1">
   <ui-card class="pointer-events-auto flex items-center" padding="p-1">
     <ui-popover>
     <ui-popover>
       <template #trigger>
       <template #trigger>
-        <ui-button icon type="transparent">
+        <ui-button icon btn-type="transparent">
           <v-remixicon name="riMore2Line" />
           <v-remixicon name="riMore2Line" />
         </ui-button>
         </ui-button>
       </template>
       </template>

+ 2 - 2
src/components/ui/UiButton.vue

@@ -4,7 +4,7 @@
     role="button"
     role="button"
     class="ui-button h-10 relative transition"
     class="ui-button h-10 relative transition"
     :class="[
     :class="[
-      color ? color : variants[type][variant],
+      color ? color : variants[btnType][variant],
       icon ? 'p-2' : 'py-2 px-4',
       icon ? 'p-2' : 'py-2 px-4',
       circle ? 'rounded-full' : 'rounded-lg',
       circle ? 'rounded-full' : 'rounded-lg',
       {
       {
@@ -49,7 +49,7 @@ export default {
       type: String,
       type: String,
       default: 'button',
       default: 'button',
     },
     },
-    type: {
+    btnType: {
       type: String,
       type: String,
       default: 'fill',
       default: 'fill',
     },
     },