From 2870280accaf7cba0a5254e05f7cd4fa77419063 Mon Sep 17 00:00:00 2001 From: "zapaz.eth" Date: Fri, 3 May 2024 17:48:29 +0200 Subject: [PATCH] fix wp mint color bug --- .vscode/settings.json | 2 +- svelte/src/components/Main/MintButtonWp.svelte | 3 ++- wordpress/readme.handlebars.txt | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1d675d7e0..67f12c6d0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -88,6 +88,6 @@ "workbench.layoutControl.enabled": true, "workbench.statusBar.visible": true, "favorites.sortOrder": "DESC", - "workbench.preferredLightColorTheme": "Kimbie Dark", + "workbench.preferredLightColorTheme": "Bluloco Light Italic", "liveServer.settings.root": "/web/dapp/" } diff --git a/svelte/src/components/Main/MintButtonWp.svelte b/svelte/src/components/Main/MintButtonWp.svelte index e3d266736..7d25c4559 100644 --- a/svelte/src/components/Main/MintButtonWp.svelte +++ b/svelte/src/components/Main/MintButtonWp.svelte @@ -37,11 +37,12 @@ $: nft && handleNft(); const handleNft = (): void => { if (!nft) return; + nid = nft.nid; // Dispacth "token" event to be catched // in wordpress/plugins/kredeum-nfts/admin/ajax/ajax.js const detail: { nid?: string; pid?: string } = {}; - if (nft && (nft as NftType).nid) detail.nid = (nft as NftType).nid; + if (nid) detail.nid = nid; if (pid) detail.pid = pid; const event = new CustomEvent("token", { detail, bubbles: true }); diff --git a/wordpress/readme.handlebars.txt b/wordpress/readme.handlebars.txt index ecf37444c..76d2ea7e6 100644 --- a/wordpress/readme.handlebars.txt +++ b/wordpress/readme.handlebars.txt @@ -3,7 +3,7 @@ Contributors: yoannr35, alexr35, alain Donate link: https://www.kredeum.com/ Tags: nft, blockchain, ethereum, polygon, ipfs, swarm Requires at least: 5.0 -Tested up to: 6.2 +Tested up to: 6.5.2 Stable tag: {{version.stable}} Requires PHP: 7.3 License: GPLv3 or later @@ -71,7 +71,10 @@ You can even add your NFTs in any websites you want by using Kredeum "Buy snippe == Changelog == -= 1.2.0 (latest) = += 1.5.0 (latest) = +* New feature (beta) : + += 1.2.0 = * New feature (beta) : Add blog post PDF archiving and NFT minting = 1.1.4 (stable & latest) =