always show group approval table on Minter & MAM boards
This commit is contained in:
parent
ef8770c5ca
commit
1bfa938caf
@ -1647,13 +1647,14 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
getNameFromAddress
|
getNameFromAddress
|
||||||
)
|
)
|
||||||
|
|
||||||
if (transactionType === "GROUP_INVITE" && isSomeTypaAdmin) {
|
if (transactionType === "GROUP_INVITE") {
|
||||||
const approvalButtonHtml = `
|
const approvalButtonHtml = `
|
||||||
<div style="display: flex; flex-direction: column; margin-top: 1em;">
|
<div style="display: flex; flex-direction: column; margin-top: 1em;">
|
||||||
<p style="color: rgb(181, 214, 100);">
|
<p style="color: rgb(181, 214, 100);">
|
||||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||||
</p>
|
</p>
|
||||||
${tableHtml}
|
${tableHtml}
|
||||||
|
${isSomeTypaAdmin ? `
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
@ -1672,6 +1673,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Approve Invite Tx
|
Approve Invite Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
@ -1744,6 +1746,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||||
</p>
|
</p>
|
||||||
${tableHtml}
|
${tableHtml}
|
||||||
|
${isSomeTypaAdmin ? `
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
@ -1762,6 +1765,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Approve Add-Admin Tx
|
Approve Add-Admin Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
@ -1774,6 +1778,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||||
</p>
|
</p>
|
||||||
${tableHtml}
|
${tableHtml}
|
||||||
|
${isSomeTypaAdmin ? `
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
@ -1792,6 +1797,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Approve Remove-Admin Tx
|
Approve Remove-Admin Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user