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)) ? `
|
const minterOrTopicHtml = ((showTopic) || (isUndefinedUser)) ? `
|
||||||
<div class="support-header"><h5> REGARDING (Topic): </h5></div>
|
<div class="support-header"><h5> REGARDING (Topic): </h5></div>
|
||||||
<h3>${minterName}</h3>` :
|
<h3>${minterName}` :
|
||||||
`
|
`
|
||||||
<div class="support-header"><h5> REGARDING (Name): </h5></div>
|
<div class="support-header"><h5> REGARDING (Name): </h5></div>
|
||||||
${minterAvatar}
|
${minterAvatar}
|
||||||
<h3>${minterName}</h3>`
|
<h3>${minterName}`
|
||||||
|
|
||||||
const minterGroupMembers = await fetchMinterGroupMembers()
|
const minterGroupMembers = await fetchMinterGroupMembers()
|
||||||
const minterAdmins = await fetchMinterGroupAdmins()
|
const minterAdmins = await fetchMinterGroupAdmins()
|
||||||
@ -1146,10 +1146,13 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
|||||||
let showRemoveHtml
|
let showRemoveHtml
|
||||||
let altText
|
let altText
|
||||||
const verifiedName = await validateMinterName(minterName)
|
const verifiedName = await validateMinterName(minterName)
|
||||||
|
let levelText = '</h3>'
|
||||||
|
|
||||||
if (verifiedName) {
|
if (verifiedName) {
|
||||||
const accountInfo = await getNameInfo(verifiedName)
|
const accountInfo = await getNameInfo(verifiedName)
|
||||||
const accountAddress = accountInfo.owner
|
const accountAddress = accountInfo.owner
|
||||||
|
const addressInfo = await getAddressInfo(accountAddress)
|
||||||
|
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}`)
|
||||||
const removeActionsHtml = await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
|
const removeActionsHtml = await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
|
||||||
showRemoveHtml = removeActionsHtml
|
showRemoveHtml = removeActionsHtml
|
||||||
@ -1184,7 +1187,7 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
|
|||||||
<h2 class="support-header"> Created By: </h2>
|
<h2 class="support-header"> Created By: </h2>
|
||||||
${creatorAvatar}
|
${creatorAvatar}
|
||||||
<h2>${creator}</h2>
|
<h2>${creator}</h2>
|
||||||
${minterOrTopicHtml}
|
${minterOrTopicHtml}${levelText}
|
||||||
<p>${header}</p>
|
<p>${header}</p>
|
||||||
${altText}
|
${altText}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user