Skip to content

Commit 6d668b4

Browse files
committed
fix: clicking on item in atomic swap should open new tab
1 parent 10f023d commit 6d668b4

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

components/items/ItemsGrid/ItemsGrid.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
? 'minimal'
4444
: 'primary'
4545
"
46+
:link-target="linkTarget"
4647
/>
4748
<ItemsGridImageTokenEntity
4849
v-else
@@ -51,6 +52,7 @@
5152
:hide-action="hideNFTHoverAction"
5253
:hide-listing="hideListing"
5354
hide-video-controls
55+
:link-target="linkTarget"
5456
:lazy-loading="
5557
shouldLazyLoad({
5658
cols: slotProps.cols,
@@ -148,6 +150,7 @@ const props = defineProps<{
148150
hideHoverAction?: boolean
149151
collectionPopoverHide?: boolean
150152
hideListing?: boolean
153+
linkTarget?: string
151154
}>()
152155
153156
const emit = defineEmits(['total', 'loading'])

components/items/ItemsGrid/ItemsGridImage.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
bind-key="to"
1717
:media-static-video="hideVideoControls"
1818
media-hover-on-cover-play
19+
:link-target="linkTarget"
1920
>
2021
<template
2122
v-if="!hideAction"
@@ -106,6 +107,7 @@ const props = defineProps<{
106107
collectionPopoverHide?: boolean
107108
lazyLoading?: boolean
108109
skeletonVariant: string
110+
linkTarget?: string
109111
}>()
110112
111113
const {

components/items/ItemsGrid/ItemsGridImageTokenEntity.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:media-static-video="hideVideoControls"
2121
:lazy-loading="lazyLoading"
2222
media-hover-on-cover-play
23+
:link-target="linkTarget"
2324
>
2425
<template
2526
v-if="!hideAction"
@@ -123,6 +124,7 @@ const props = defineProps<{
123124
lazyLoading?: boolean
124125
skeletonVariant: string
125126
hideListing?: boolean
127+
linkTarget?: string
126128
}>()
127129
128130
const {

components/shared/nftCard/NftCard.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<component
77
:is="link"
88
v-if="!isLoading && nft"
9+
:target="linkTarget"
910
:[bindKey]="href"
1011
>
1112
<img
@@ -142,6 +143,7 @@ const props = withDefaults(
142143
hideMediaInfo?: boolean
143144
linkTo?: string
144145
lazyLoading?: boolean
146+
linkTarget?: string
145147
}>(),
146148
{
147149
collectionPopoverShowDelay: 500,

components/swap/GridList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:search="query"
1111
grid-size="medium"
1212
:grid-section="gridSection"
13+
link-target="_blank"
1314
:hide-hover-action="!selectable"
1415
>
1516
<template

0 commit comments

Comments
 (0)