Skip to content

Commit

Permalink
✨ Add isHidden from purchase info
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Dec 20, 2024
1 parent d6e53eb commit 3b07b90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mixins/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,9 @@ export default {
return this.nftCreatorMessage.replaceAll('{collector}', collector);
},
isNFTHidden() {
return this.getNFTClassHiddenSetByAddress(this.iscnOwner)?.has(
this.classId
return (
this.getNFTBookStoreInfoByClassId(this.classId).isHidden ||
this.getNFTClassHiddenSetByAddress(this.iscnOwner)?.has(this.classId)
);
},

Expand Down
6 changes: 6 additions & 0 deletions src/store/modules/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ const actions = {
hideDownload: bookstoreInfo.hideDownload,
defaultPaymentCurrency: bookstoreInfo.defaultPaymentCurrency,
enableCustomMessagePage: bookstoreInfo.enableCustomMessagePage,
signedMessageText: bookstoreInfo.signedMessageText,
enableSignatureImage: bookstoreInfo.enableSignatureImage,
isHidden: bookstoreInfo.isHidden,
};
commit(TYPES.NFT_BOOK_STORE_INFO_BY_CLASS_ID_MAP_SET, payload);
}
Expand Down Expand Up @@ -873,6 +876,9 @@ const actions = {
hideDownload: data.hideDownload,
defaultPaymentCurrency: data.defaultPaymentCurrency,
enableCustomMessagePage: data.enableCustomMessagePage,
signedMessageText: data.signedMessageText,
enableSignatureImage: data.enableSignatureImage,
isHidden: data.isHidden,
};
commit(TYPES.NFT_BOOK_STORE_INFO_BY_CLASS_ID_MAP_SET, payload);
return payload;
Expand Down

0 comments on commit 3b07b90

Please sign in to comment.