patches to fix loading card data on update in MinterBoard, and clearing message input on send in Forum.
This commit is contained in:
parent
6374ea1e41
commit
10d4f09af3
@ -72,7 +72,7 @@ const loadMinterBoardPage = async () => {
|
||||
}
|
||||
} else {
|
||||
// No existing card found
|
||||
alert("No existing card found. Create a new card.");
|
||||
console.log("No existing card found. Creating a new card.");
|
||||
isExistingCard = false;
|
||||
}
|
||||
|
||||
@ -322,7 +322,7 @@ const createSkeletonCardHTML = (cardIdentifier) => {
|
||||
// Function to check and fech an existing Minter Card if attempting to publish twice ----------------------------------------
|
||||
const fetchExistingCard = async () => {
|
||||
try {
|
||||
const response = await searchSimple('BLOG_POST', `${cardIdentifierPrefix}`, `${userState.accountName}`, 0)
|
||||
const response = await searchSimple('BLOG_POST', `${cardIdentifierPrefix}`, `${userState.accountName}`, 0, 0, '', true)
|
||||
|
||||
console.log(`SEARCH_QDN_RESOURCES response: ${JSON.stringify(response, null, 2)}`)
|
||||
|
||||
@ -330,7 +330,20 @@ const fetchExistingCard = async () => {
|
||||
console.log("No cards found for the current user.")
|
||||
return null
|
||||
} else if (response.length === 1) { // we don't need to go through all of the rest of the checks and filtering nonsense if there's only a single result, just return it.
|
||||
return response[0]
|
||||
const mostRecentCard = response[0]
|
||||
|
||||
const cardDataResponse = await qortalRequest({
|
||||
action: "FETCH_QDN_RESOURCE",
|
||||
name: userState.accountName, // User's account name
|
||||
service: "BLOG_POST",
|
||||
identifier: mostRecentCard.identifier
|
||||
})
|
||||
|
||||
existingCardIdentifier = mostRecentCard.identifier
|
||||
existingCardData = cardDataResponse
|
||||
|
||||
return cardDataResponse
|
||||
|
||||
}
|
||||
|
||||
const validatedCards = await Promise.all(
|
||||
|
@ -628,7 +628,7 @@ function clearInputs() {
|
||||
document.getElementById('preview-container').innerHTML = ''
|
||||
|
||||
// Reset the Quill editor
|
||||
const quill = new Quill('editor')
|
||||
const quill = new Quill('#editor')
|
||||
quill.setContents([])
|
||||
quill.setSelection(0)
|
||||
|
||||
|
21
index.html
21
index.html
@ -68,7 +68,7 @@
|
||||
<img src="assets/images/again-edited-qortal-minting-icon-156x156.png" alt="">
|
||||
</a>
|
||||
</span>
|
||||
<span class="navbar-caption-wrap"><a class="navbar-caption text-primary display-4" href="index.html">Q-Mintership Alpha v0.67b<br></a></span>
|
||||
<span class="navbar-caption-wrap"><a class="navbar-caption text-primary display-4" href="index.html">Q-Mintership Alpha v0.68b<br></a></span>
|
||||
</div>
|
||||
<ul class="navbar-nav nav-dropdown" data-app-modern-menu="true"><li class="nav-item"><a class="nav-link link text-primary display-7" href="MINTERSHIP-FORUM"></a></li></ul>
|
||||
|
||||
@ -197,6 +197,23 @@
|
||||
|
||||
<section data-bs-version="5.1" class="content7 boldm5 cid-uufIRKtXOO" id="content7-6">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-7 card">
|
||||
<div class="title-wrapper">
|
||||
<h2 class="mbr-section-title mbr-fonts-style display-2">
|
||||
v0.68beta 01-01-2025</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-5 card">
|
||||
<div class="text-wrapper">
|
||||
<p class="mbr-text mbr-fonts-style display-7">
|
||||
This is a patch update to fix loading of data into minter cards upon duplicates, and clearing message input on send in the forum.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-7 card">
|
||||
@ -417,7 +434,7 @@
|
||||
</div>
|
||||
|
||||
<a class="link-wrap" href="#">
|
||||
<p class="mbr-link mbr-fonts-style display-4">Q-Mintership v0.67beta</p>
|
||||
<p class="mbr-link mbr-fonts-style display-4">Q-Mintership v0.68beta</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6">
|
||||
|
Loading…
Reference in New Issue
Block a user