always show group approval table on Minter & MAM boards
This commit is contained in:
parent
e9036a8f0d
commit
0e9eec1b4f
@ -1563,13 +1563,14 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
||||
getNameFromAddress
|
||||
)
|
||||
|
||||
if (transactionType === "GROUP_INVITE" && isSomeTypaAdmin) {
|
||||
if (transactionType === "GROUP_INVITE") {
|
||||
const approvalButtonHtml = `
|
||||
<div style="display: flex; flex-direction: column; margin-top: 1em;">
|
||||
<p style="color: rgb(181, 214, 100);">
|
||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||
</p>
|
||||
${tableHtml}
|
||||
${isSomeTypaAdmin ? `
|
||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||
<button
|
||||
style="
|
||||
@ -1588,6 +1589,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
||||
Approve Invite Tx
|
||||
</button>
|
||||
</div>
|
||||
` : ''}
|
||||
</div>
|
||||
`
|
||||
return approvalButtonHtml
|
||||
@ -1653,13 +1655,14 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
||||
return approvalButtonHtml
|
||||
}
|
||||
|
||||
if (transactionType === "ADD_GROUP_ADMIN" && isSomeTypaAdmin) {
|
||||
if (transactionType === "ADD_GROUP_ADMIN") {
|
||||
const approvalButtonHtml = `
|
||||
<div style="display: flex; flex-direction: column; margin-top: 1em;">
|
||||
<p style="color: rgb(40, 144, 189);">
|
||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||
</p>
|
||||
${tableHtml}
|
||||
${isSomeTypaAdmin ? `
|
||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||
<button
|
||||
style="
|
||||
@ -1678,18 +1681,20 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
||||
Approve Add-Admin Tx
|
||||
</button>
|
||||
</div>
|
||||
` : ''}
|
||||
</div>
|
||||
`
|
||||
return approvalButtonHtml
|
||||
}
|
||||
|
||||
if (transactionType === "REMOVE_GROUP_ADMIN" && isSomeTypaAdmin) {
|
||||
if (transactionType === "REMOVE_GROUP_ADMIN") {
|
||||
const approvalButtonHtml = `
|
||||
<div style="display: flex; flex-direction: column; margin-top: 1em;">
|
||||
<p style="color: rgb(189, 40, 40);">
|
||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||
</p>
|
||||
${tableHtml}
|
||||
${isSomeTypaAdmin ? `
|
||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||
<button
|
||||
style="
|
||||
@ -1708,6 +1713,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
||||
Approve Remove-Admin Tx
|
||||
</button>
|
||||
</div>
|
||||
` : ''}
|
||||
</div>
|
||||
`
|
||||
return approvalButtonHtml
|
||||
|
Loading…
x
Reference in New Issue
Block a user