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
|
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="
|
||||||
@ -1588,6 +1589,7 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Approve Invite Tx
|
Approve Invite Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
@ -1653,13 +1655,14 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactionType === "ADD_GROUP_ADMIN" && isSomeTypaAdmin) {
|
if (transactionType === "ADD_GROUP_ADMIN") {
|
||||||
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(40, 144, 189);">
|
<p style="color: rgb(40, 144, 189);">
|
||||||
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="
|
||||||
@ -1678,18 +1681,20 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Approve Add-Admin Tx
|
Approve Add-Admin Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transactionType === "REMOVE_GROUP_ADMIN" && isSomeTypaAdmin) {
|
if (transactionType === "REMOVE_GROUP_ADMIN") {
|
||||||
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(189, 40, 40);">
|
<p style="color: rgb(189, 40, 40);">
|
||||||
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="
|
||||||
@ -1708,6 +1713,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