Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clicking on item in atomic swap should open new tab #11329

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/items/ItemsGrid/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
? 'minimal'
: 'primary'
"
:link-target="linkTarget"
/>
<ItemsGridImageTokenEntity
v-else
Expand All @@ -51,6 +52,7 @@
:hide-action="hideNFTHoverAction"
:hide-listing="hideListing"
hide-video-controls
:link-target="linkTarget"
:lazy-loading="
shouldLazyLoad({
cols: slotProps.cols,
Expand Down Expand Up @@ -148,6 +150,7 @@ const props = defineProps<{
hideHoverAction?: boolean
collectionPopoverHide?: boolean
hideListing?: boolean
linkTarget?: string
}>()

const emit = defineEmits(['total', 'loading'])
Expand Down
2 changes: 2 additions & 0 deletions components/items/ItemsGrid/ItemsGridImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
bind-key="to"
:media-static-video="hideVideoControls"
media-hover-on-cover-play
:link-target="linkTarget"
>
<template
v-if="!hideAction"
Expand Down Expand Up @@ -106,6 +107,7 @@ const props = defineProps<{
collectionPopoverHide?: boolean
lazyLoading?: boolean
skeletonVariant: string
linkTarget?: string
}>()

const {
Expand Down
2 changes: 2 additions & 0 deletions components/items/ItemsGrid/ItemsGridImageTokenEntity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:media-static-video="hideVideoControls"
:lazy-loading="lazyLoading"
media-hover-on-cover-play
:link-target="linkTarget"
>
<template
v-if="!hideAction"
Expand Down Expand Up @@ -123,6 +124,7 @@ const props = defineProps<{
lazyLoading?: boolean
skeletonVariant: string
hideListing?: boolean
linkTarget?: string
}>()

const {
Expand Down
2 changes: 2 additions & 0 deletions components/shared/nftCard/NftCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<component
:is="link"
v-if="!isLoading && nft"
:target="linkTarget"
:[bindKey]="href"
>
<img
Expand Down Expand Up @@ -142,6 +143,7 @@ const props = withDefaults(
hideMediaInfo?: boolean
linkTo?: string
lazyLoading?: boolean
linkTarget?: string
}>(),
{
collectionPopoverShowDelay: 500,
Expand Down
1 change: 1 addition & 0 deletions components/swap/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:search="query"
grid-size="medium"
:grid-section="gridSection"
link-target="_blank"
:hide-hover-action="!selectable"
>
<template
Expand Down
Loading