move extended details under details section in ClaimView, and make that section more similar to ConfirmGiftView

This commit is contained in:
2025-01-04 14:55:20 -07:00
parent adb37d2d30
commit 670c729a37
2 changed files with 45 additions and 40 deletions

View File

@@ -345,8 +345,15 @@
</div> </div>
<!-- Note that a similar section is found in ConfirmGiftView.vue --> <!-- Note that a similar section is found in ConfirmGiftView.vue -->
<div> <h2
<h2 class="font-bold uppercase text-xl mt-8 mb-2">Details</h2> class="font-bold uppercase text-xl text-blue-500 mt-8 cursor-pointer"
@click="showVeriClaimDump = !showVeriClaimDump"
>
Details
<fa v-if="showVeriClaimDump" icon="chevron-up" />
<fa v-else icon="chevron-down" />
</h2>
<div v-if="showVeriClaimDump">
<div <div
v-if=" v-if="
serverUtil.containsHiddenDid(veriClaim) && serverUtil.containsHiddenDid(veriClaim) &&
@@ -448,50 +455,48 @@
This record is an edited version. The latest version is here. This record is an edited version. The latest version is here.
</span> </span>
<br /> <br />
<button @click="showVeriClaimDump = !showVeriClaimDump" class="ml-2">
Details
<fa v-if="showVeriClaimDump" icon="chevron-up" class="text-blue-400" />
<fa v-else icon="chevron-down" class="text-blue-400" />
</button>
<!-- Keep the dump contents directly between > and < to avoid weird spacing. --> <!-- Keep the dump contents directly between > and < to avoid weird spacing. -->
<pre <pre
v-if="showVeriClaimDump" v-if="showVeriClaimDump"
class="text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md" class="text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md"
>{{ veriClaimDump }}</pre >{{ veriClaimDump }}</pre
> >
</div>
<h2 class="text-xl mt-8 mb-2">Full Claim</h2> <h2 class="text-xl mt-8 mb-2">Full Claim</h2>
<p class="mb-4"> <p class="mb-4">
The full claim includes the claim as it was originally issued, including The full claim includes the claim as it was originally issued, including
the signature (ie. the proof of issuance by that person). the signature (ie. the proof of issuance by that person).
</p>
<div v-if="!fullClaim">
<p v-if="fullClaimMessage" class="mb-4">
{{ fullClaimMessage }}
</p> </p>
<button <div v-if="!fullClaim">
v-else <p v-if="fullClaimMessage" class="mb-4">
class="block w-full text-center text-md uppercase 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-1.5 py-2 rounded-md mb-2" {{ fullClaimMessage }}
@click="showFullClaim(veriClaim.id as string)" </p>
> <button
Load Full Claim Details v-else
</button> class="text-blue-500 cursor-pointer"
</div> @click="showFullClaim(veriClaim.id as string)"
<div v-else> >
<pre <fa icon="file-lines" class="fa-fw" />
class="text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md" Load Full Claim Details
>{{ fullClaimDump }}</pre </button>
> </div>
</div> <div v-else>
<pre
class="text-sm overflow-x-scroll bg-slate-100 px-4 py-3 rounded-md"
>{{ fullClaimDump }}</pre
>
</div>
<a <a
:href="apiServer + '/api/claim/' + veriClaim.id" :href="apiServer + '/api/claim/' + veriClaim.id"
target="_blank" target="_blank"
class="block w-full text-center text-md uppercase 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-1.5 py-2 rounded-md mb-2" class="text-blue-500 cursor-pointer"
> >
View on the Public Server <fa icon="file-lines" class="fa-fw" />
</a> <fa icon="arrow-up-right-from-square" class="ml-1 fa-fw" />
View on the Public Server
</a>
</div>
</section> </section>
</template> </template>

View File

@@ -256,12 +256,12 @@
<!-- Note that a similar section is found in ClaimView.vue --> <!-- Note that a similar section is found in ClaimView.vue -->
<h2 <h2
class="font-bold uppercase text-xl text-blue-500 mt-8 mb-2 cursor-pointer" class="font-bold uppercase text-xl text-blue-500 mt-8 cursor-pointer"
@click="showVeriClaimDump = !showVeriClaimDump" @click="showVeriClaimDump = !showVeriClaimDump"
> >
Details Details
<span v-if="!showVeriClaimDump"><fa icon="chevron-down" /></span> <fa v-if="showVeriClaimDump" icon="chevron-up" />
<span v-else><fa icon="chevron-up" /></span> <fa v-else icon="chevron-down" />
</h2> </h2>
<div v-if="showVeriClaimDump"> <div v-if="showVeriClaimDump">
<div <div