Skip to content

Commit

Permalink
fix(drops): hide lisitng cart mini & disable listing from drop nft grid
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Sep 18, 2024
1 parent 1bbfaf6 commit 157df86
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/collection/drop/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
:grid-size="'medium'"
display-name-with-sn
collection-popover-hide
hide-listing
show-timestamp
:reset-search-query-params="['sort']"
/>
Expand Down
3 changes: 3 additions & 0 deletions components/items/ItemsGrid/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
:display-name-with-sn="displayNameWithSn"
:show-timestamp="showTimestamp"
:collection-popover-hide="collectionPopoverHide"
:hide-listing="hideListing"
:lazy-loading="
shouldLazyLoad({
cols: slotProps.cols,
Expand All @@ -49,6 +50,7 @@
:entity="entity"
:hide-media-info="hideMediaInfo"
:hide-action="hideNFTHoverAction"
:hide-listing="hideListing"
:display-name-with-sn="displayNameWithSn"
hide-video-controls
:lazy-loading="
Expand Down Expand Up @@ -146,6 +148,7 @@ const props = defineProps<{
showTimestamp?: boolean
hideHoverAction?: boolean
collectionPopoverHide?: boolean
hideListing?: boolean
}>()
const emit = defineEmits(['total', 'loading'])
Expand Down
3 changes: 2 additions & 1 deletion components/items/ItemsGrid/ItemsGridImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</NeoButton>
</div>
<div
v-else-if="isOwner && listVisible(urlPrefix)"
v-else-if="isOwner && listVisible(urlPrefix) && !hideListing"
class="flex"
>
<NeoButton
Expand Down Expand Up @@ -113,6 +113,7 @@ const props = defineProps<{
hideMediaInfo?: boolean
hideAction?: boolean
hideVideoControls?: boolean
hideListing?: boolean
displayNameWithSn?: boolean
showTimestamp?: boolean
collectionPopoverHide?: boolean
Expand Down
3 changes: 2 additions & 1 deletion components/items/ItemsGrid/ItemsGridImageTokenEntity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</NeoButton>
</div>
<div
v-else-if="isOwner"
v-else-if="isOwner && !hideListing"
class="flex"
>
<template v-if="isStack">
Expand Down Expand Up @@ -129,6 +129,7 @@ const props = defineProps<{
displayNameWithSn?: boolean
lazyLoading?: boolean
skeletonVariant: string
hideListing?: boolean
}>()
const {
Expand Down
1 change: 0 additions & 1 deletion layouts/unlockable-mint-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<LazyCookieBanner />
<KeyboardShortcutsModal />
<Buy />
<ListingCartMini />
<ListingCartModal />
</div>
</template>

0 comments on commit 157df86

Please sign in to comment.