refactor confirmation section to show together and more cleanly
This commit is contained in:
@@ -131,33 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex columns-3">
|
<div class="mt-8">
|
||||||
<button
|
|
||||||
class="col-span-1 bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-4 py-2 rounded-md"
|
|
||||||
v-if="
|
|
||||||
libsUtil.isGiveRecordTheUserCanConfirm(
|
|
||||||
isRegistered,
|
|
||||||
veriClaim,
|
|
||||||
activeDid,
|
|
||||||
confirmerIdList,
|
|
||||||
)
|
|
||||||
"
|
|
||||||
@click="confirmConfirmClaim()"
|
|
||||||
>
|
|
||||||
Confirm
|
|
||||||
<fa icon="circle-check" class="ml-2 text-white cursor-pointer" />
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<span class="px-4 py-2">
|
|
||||||
<router-link
|
|
||||||
v-if="libsUtil.isGiveAction(veriClaim)"
|
|
||||||
:to="'/confirm-gift/' + encodeURIComponent(veriClaim.id)"
|
|
||||||
class="col-span-1 text-blue-500"
|
|
||||||
>
|
|
||||||
Confirmation Details...
|
|
||||||
</router-link>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
v-if="libsUtil.canFulfillOffer(veriClaim)"
|
v-if="libsUtil.canFulfillOffer(veriClaim)"
|
||||||
@click="openFulfillGiftDialog()"
|
@click="openFulfillGiftDialog()"
|
||||||
@@ -167,10 +141,37 @@
|
|||||||
<fa icon="hand-holding-heart" class="ml-2 text-white cursor-pointer" />
|
<fa icon="hand-holding-heart" class="ml-2 text-white cursor-pointer" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<GiftedDialog ref="customGiveDialog" />
|
|
||||||
|
|
||||||
<div v-if="libsUtil.isGiveAction(veriClaim)">
|
<div v-if="libsUtil.isGiveAction(veriClaim)">
|
||||||
<h2 class="font-bold uppercase text-xl mt-8 mb-2">Confirmations</h2>
|
<div class="flex columns-3">
|
||||||
|
<button
|
||||||
|
class="col-span-1 bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-4 py-2 rounded-md"
|
||||||
|
v-if="
|
||||||
|
libsUtil.isGiveRecordTheUserCanConfirm(
|
||||||
|
isRegistered,
|
||||||
|
veriClaim,
|
||||||
|
activeDid,
|
||||||
|
confirmerIdList,
|
||||||
|
)
|
||||||
|
"
|
||||||
|
@click="confirmConfirmClaim()"
|
||||||
|
>
|
||||||
|
Confirm
|
||||||
|
<fa icon="circle-check" class="ml-2 text-white cursor-pointer" />
|
||||||
|
</button>
|
||||||
|
<h2 v-else class="font-bold uppercase text-xl mt-2 mb-2">Confirmations</h2>
|
||||||
|
|
||||||
|
<span class="mt-0.5 px-4 py-2">
|
||||||
|
<router-link
|
||||||
|
v-if="libsUtil.isGiveAction(veriClaim)"
|
||||||
|
:to="'/confirm-gift/' + encodeURIComponent(veriClaim.id)"
|
||||||
|
class="col-span-1 text-blue-500"
|
||||||
|
>
|
||||||
|
Details...
|
||||||
|
</router-link>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<GiftedDialog ref="customGiveDialog" />
|
||||||
|
|
||||||
<span v-if="totalConfirmers() === 0">Nobody has confirmed this.</span>
|
<span v-if="totalConfirmers() === 0">Nobody has confirmed this.</span>
|
||||||
<span v-else-if="totalConfirmers() === 1">
|
<span v-else-if="totalConfirmers() === 1">
|
||||||
|
|||||||
Reference in New Issue
Block a user