Skip to content

Commit

Permalink
fix: handle icon-right through template
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jul 26, 2023
1 parent ea0899c commit 535ed92
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
<div class="left flex space-x-2">
<Dropdown :options="viewsDropdownOptions">
<template #default="{ open }">
<Button
:label="currentView.label"
:icon-right="open ? 'chevron-up' : 'chevron-down'"
>
<Button :label="currentView.label">
<template #prefix
><FeatherIcon :name="currentView.icon" class="h-4"
/></template>
<template #suffix
><FeatherIcon
:name="open ? 'chevron-up' : 'chevron-down'"
class="h-4"
/></template>
</Button>
</template>
</Dropdown>
Expand Down

0 comments on commit 535ed92

Please sign in to comment.