always show group approval table on Minter & MAM boards
This commit is contained in:
parent
ef8770c5ca
commit
1bfa938caf
@ -1647,14 +1647,15 @@ 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}
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
${isSomeTypaAdmin ? `
|
||||||
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
@ -1671,7 +1672,8 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
>
|
>
|
||||||
Approve Invite Tx
|
Approve Invite Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
@ -1744,7 +1746,8 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||||
</p>
|
</p>
|
||||||
${tableHtml}
|
${tableHtml}
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
${isSomeTypaAdmin ? `
|
||||||
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
@ -1761,7 +1764,8 @@ 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,7 +1778,8 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
Existing ${transactionType} Approvals: ${uniqueApprovalCount}
|
||||||
</p>
|
</p>
|
||||||
${tableHtml}
|
${tableHtml}
|
||||||
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
${isSomeTypaAdmin ? `
|
||||||
|
<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
@ -1791,7 +1796,8 @@ 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