Skip to content

Commit 68b7f6b

Browse files
committed
Refactor ListItem component to conditionally render button based on device type and clean up ListManagementButtons template
1 parent a124417 commit 68b7f6b

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/components/ListItem.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@
2323
:append-icon="mdiOpenInNew"
2424
:href="item.url"
2525
target="_blank"
26-
v-if="item.url"
26+
v-if="item.url && !$vuetify.display.mobile"
2727
variant="outlined"
2828
size="small"
29-
>Open Website</v-btn>
29+
>
30+
Open Website
31+
</v-btn>
32+
<v-btn
33+
:icon="mdiOpenInNew"
34+
:href="item.url"
35+
target="_blank"
36+
v-if="item.url && $vuetify.display.mobile"
37+
variant="outlined"
38+
size="small"
39+
/>
3040
<ModifyItem
3141
variant="outlined"
3242
:item="item"

src/components/dialogs/ListManagementButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@newItem="(data) => $emit('newItem', data)"
1717
@updateList="$emit('updateList', $event)"
1818
v-if="wishlistOwner"
19-
/>
19+
/>
2020

2121
<v-btn
2222
size="small"

0 commit comments

Comments
 (0)