always show group invite tx approvals
This commit is contained in:
parent
01fe92eda6
commit
53b90f2b1b
@ -1432,11 +1432,6 @@ const featureTriggerCheck = async () => {
|
|||||||
|
|
||||||
const checkAndDisplayInviteButton = async (adminYes, creator, cardIdentifier) => {
|
const checkAndDisplayInviteButton = async (adminYes, creator, cardIdentifier) => {
|
||||||
|
|
||||||
if (!userState.isMinterAdmin){
|
|
||||||
console.warn(`User is NOT an admin, not displaying invite/approve button...`)
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
|
|
||||||
const isBlockPassed = await featureTriggerCheck()
|
const isBlockPassed = await featureTriggerCheck()
|
||||||
const minterAdmins = await fetchMinterGroupAdmins()
|
const minterAdmins = await fetchMinterGroupAdmins()
|
||||||
|
|
||||||
@ -1483,7 +1478,7 @@ const checkAndDisplayInviteButton = async (adminYes, creator, cardIdentifier) =>
|
|||||||
|
|
||||||
console.warn(`PriorBanOrKick determination:`, priorBanOrKick)
|
console.warn(`PriorBanOrKick determination:`, priorBanOrKick)
|
||||||
|
|
||||||
const inviteButtonHtml = createInviteButtonHtml(creator, cardIdentifier)
|
const inviteButtonHtml = userState.isMinterAdmin ? createInviteButtonHtml(creator, cardIdentifier) : ''
|
||||||
const groupApprovalHtml = await checkGroupApprovalAndCreateButton(minterAddress, cardIdentifier, "GROUP_INVITE")
|
const groupApprovalHtml = await checkGroupApprovalAndCreateButton(minterAddress, cardIdentifier, "GROUP_INVITE")
|
||||||
|
|
||||||
if (!priorBanOrKick) {
|
if (!priorBanOrKick) {
|
||||||
@ -1572,7 +1567,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;">
|
${userState.isMinterAdmin ?
|
||||||
|
`<div id="approval-button-container-${cardIdentifier}" style="margin-top: 1em;">
|
||||||
<button
|
<button
|
||||||
style="
|
style="
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
@ -1589,7 +1585,8 @@ const checkGroupApprovalAndCreateButton = async (address, cardIdentifier, transa
|
|||||||
>
|
>
|
||||||
Approve Invite Tx
|
Approve Invite Tx
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>`
|
||||||
|
: ''}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
return approvalButtonHtml
|
return approvalButtonHtml
|
||||||
|
Loading…
Reference in New Issue
Block a user