diff --git a/components/gallery/GalleryItemButton/GalleryItemMoreActionBtn.vue b/components/gallery/GalleryItemButton/GalleryItemMoreActionBtn.vue index d9b944c21e..99f39ddb53 100644 --- a/components/gallery/GalleryItemButton/GalleryItemMoreActionBtn.vue +++ b/components/gallery/GalleryItemButton/GalleryItemMoreActionBtn.vue @@ -48,7 +48,10 @@ Delist - + Report @@ -94,6 +97,7 @@ const props = defineProps<{ const action = ref('') const isOwner = computed(() => accountId.value === props.nft?.currentOwner) +const isCollectionOwner = computed(() => accountId.value === props.nft?.collection?.currentOwner) const nftId = computed(() => props.nft?.id || '') const { data } = useQuery({ diff --git a/queries/subsquid/ahk/nftById.graphql b/queries/subsquid/ahk/nftById.graphql index eac7db68b0..09057edc03 100644 --- a/queries/subsquid/ahk/nftById.graphql +++ b/queries/subsquid/ahk/nftById.graphql @@ -9,6 +9,7 @@ query nftById($id: String!) { collection { id name + currentOwner } attributes { key: trait diff --git a/queries/subsquid/general/nftById.graphql b/queries/subsquid/general/nftById.graphql index 22e4e90e55..54f9d3b2ef 100644 --- a/queries/subsquid/general/nftById.graphql +++ b/queries/subsquid/general/nftById.graphql @@ -8,6 +8,7 @@ query nftById($id: String!) { collection { id name + currentOwner floorPrice: nfts( where: { burned_eq: false, price_not_eq: "0" } orderBy: price_ASC diff --git a/queries/subsquid/ksm/nftById.graphql b/queries/subsquid/ksm/nftById.graphql index 9cd904eaa6..75435b9c57 100644 --- a/queries/subsquid/ksm/nftById.graphql +++ b/queries/subsquid/ksm/nftById.graphql @@ -20,6 +20,7 @@ query nftById($id: String!) { collection { id name + currentOwner } emotes { caller diff --git a/queries/subsquid/rmrk/nftById.graphql b/queries/subsquid/rmrk/nftById.graphql index 870cc69d17..a7c34d9631 100644 --- a/queries/subsquid/rmrk/nftById.graphql +++ b/queries/subsquid/rmrk/nftById.graphql @@ -8,6 +8,7 @@ query nftById($id: String!) { collection { id name + currentOwner } emotes { caller diff --git a/types/index.ts b/types/index.ts index a20328adbb..81f1b02db8 100644 --- a/types/index.ts +++ b/types/index.ts @@ -110,6 +110,7 @@ export interface TokenId { export type EntityWithId = { id: string name: string + currentOwner: string floor: string }