Show account level on name-based admin cards
This commit is contained in:
parent
11c7bfede7
commit
e0628ee8e0
@ -1130,11 +1130,11 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
||||
|
||||
const minterOrTopicHtml = ((showTopic) || (isUndefinedUser)) ? `
|
||||
<div class="support-header"><h5> REGARDING (Topic): </h5></div>
|
||||
<h3>${minterName}</h3>` :
|
||||
<h3>${minterName}` :
|
||||
`
|
||||
<div class="support-header"><h5> REGARDING (Name): </h5></div>
|
||||
${minterAvatar}
|
||||
<h3>${minterName}</h3>`
|
||||
<h3>${minterName}`
|
||||
|
||||
const minterGroupMembers = await fetchMinterGroupMembers()
|
||||
const minterAdmins = await fetchMinterGroupAdmins()
|
||||
@ -1146,10 +1146,13 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
||||
let showRemoveHtml
|
||||
let altText
|
||||
const verifiedName = await validateMinterName(minterName)
|
||||
let levelText = '</h3>'
|
||||
|
||||
if (verifiedName) {
|
||||
const accountInfo = await getNameInfo(verifiedName)
|
||||
const accountAddress = accountInfo.owner
|
||||
const addressInfo = await getAddressInfo(accountAddress)
|
||||
levelText = ` - Level ${addressInfo.level}</h3>`
|
||||
console.log(`name is validated, utilizing for removal features...${verifiedName}`)
|
||||
const removeActionsHtml = await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
|
||||
showRemoveHtml = removeActionsHtml
|
||||
@ -1184,7 +1187,7 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
||||
<h2 class="support-header"> Created By: </h2>
|
||||
${creatorAvatar}
|
||||
<h2>${creator}</h2>
|
||||
${minterOrTopicHtml}
|
||||
${minterOrTopicHtml}${levelText}
|
||||
<p>${header}</p>
|
||||
${altText}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user