Show block adjustment / penalty on name-based admin cards & fix "undefined" altText
This commit is contained in:
parent
e0628ee8e0
commit
7cb0064242
@ -1144,7 +1144,9 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
|||||||
createModal('poll-details')
|
createModal('poll-details')
|
||||||
|
|
||||||
let showRemoveHtml
|
let showRemoveHtml
|
||||||
let altText
|
let altText = ''
|
||||||
|
let penaltyText = ''
|
||||||
|
let adjustmentText = ''
|
||||||
const verifiedName = await validateMinterName(minterName)
|
const verifiedName = await validateMinterName(minterName)
|
||||||
let levelText = '</h3>'
|
let levelText = '</h3>'
|
||||||
|
|
||||||
@ -1154,6 +1156,8 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
|||||||
const addressInfo = await getAddressInfo(accountAddress)
|
const addressInfo = await getAddressInfo(accountAddress)
|
||||||
levelText = ` - Level ${addressInfo.level}</h3>`
|
levelText = ` - Level ${addressInfo.level}</h3>`
|
||||||
console.log(`name is validated, utilizing for removal features...${verifiedName}`)
|
console.log(`name is validated, utilizing for removal features...${verifiedName}`)
|
||||||
|
penaltyText = addressInfo.blocksMintedPenalty == 0 ? '' : '<p>(has Blocks Penalty)<p>'
|
||||||
|
adjustmentText = addressInfo.blocksMintedAdjustment == 0 ? '' : '<p>(has Blocks Adjustment)<p>'
|
||||||
const removeActionsHtml = await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
|
const removeActionsHtml = await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
|
||||||
showRemoveHtml = removeActionsHtml
|
showRemoveHtml = removeActionsHtml
|
||||||
if (userVote === 0) {
|
if (userVote === 0) {
|
||||||
@ -1189,7 +1193,7 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
|||||||
<h2>${creator}</h2>
|
<h2>${creator}</h2>
|
||||||
${minterOrTopicHtml}${levelText}
|
${minterOrTopicHtml}${levelText}
|
||||||
<p>${header}</p>
|
<p>${header}</p>
|
||||||
${altText}
|
${penaltyText}${adjustmentText}${altText}
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
${content}
|
${content}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user