Skip to content

Commit

Permalink
Fix BaseButton slots
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosnt committed Nov 14, 2024
1 parent ef1fc46 commit 51ad248
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/frontend/components/base/button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
:to="route"
:href="link"
:variant="variant"
:icon="icon || avatar"
:hover="link || route"
:icon="icon !== undefined || avatar !== undefined"
:hover="link !== undefined || route !== undefined"
@click.prevent.stop
>
<v-slot>
<v-slot name="prepend" />
<v-slot name="icon">
<slot>
<slot name="prepend" />
<slot name="icon">
<v-avatar v-if="avatar" :size="avatarSize" :image="avatar" />
<v-icon
v-if="icon && !avatar"
:size="iconSize"
:color="iconColor"
:icon="icon"
/>
</v-slot>
</slot>
<v-tooltip
v-if="tooltip !== undefined"
activator="parent"
:text="tooltip"
/>
</v-slot>
</slot>
</v-btn>
</template>

Expand Down
3 changes: 1 addition & 2 deletions src/frontend/components/footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
<BaseButton
v-if="item.icon"
class="mx-3"
:href="item.link"
icon
:link="item.link"
variant="plain"
new-tab
>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/utils/submit.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<BaseButton
<v-btn
:autofocus="autofocus"
:color="color"
size="large"
Expand Down

0 comments on commit 51ad248

Please sign in to comment.