From 3b07b90425751ffb2b670e9cfe3bd615bea98ed2 Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 20 Dec 2024 15:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20isHidden=20from=20purchase=20?= =?UTF-8?q?info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/nft.js | 5 +++-- src/store/modules/nft.js | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mixins/nft.js b/src/mixins/nft.js index aa698e15d..97921bb66 100644 --- a/src/mixins/nft.js +++ b/src/mixins/nft.js @@ -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) ); }, diff --git a/src/store/modules/nft.js b/src/store/modules/nft.js index 4b5f6423f..334448440 100644 --- a/src/store/modules/nft.js +++ b/src/store/modules/nft.js @@ -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); } @@ -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;