|
@ -201,11 +201,15 @@ |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<span v-if="totalConfirmers() === 0">Nobody has confirmed this.</span> |
|
|
<div class="mt-2"> |
|
|
<span v-else-if="totalConfirmers() === 1"> |
|
|
<span v-if="totalConfirmers() === 0">Nobody has confirmed this.</span> |
|
|
One person has confirmed this. |
|
|
<span v-else-if="totalConfirmers() === 1"> |
|
|
</span> |
|
|
One person has confirmed this. |
|
|
<span v-else> {{ totalConfirmers() }} people have confirmed this. </span> |
|
|
</span> |
|
|
|
|
|
<span v-else> |
|
|
|
|
|
{{ totalConfirmers() }} people have confirmed this. |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="totalConfirmers() > 0"> |
|
|
<div v-if="totalConfirmers() > 0"> |
|
|
<div |
|
|
<div |
|
@ -312,9 +316,7 @@ |
|
|
|
|
|
|
|
|
<!-- Note that a similar section is found in ConfirmGiftView.vue --> |
|
|
<!-- Note that a similar section is found in ConfirmGiftView.vue --> |
|
|
<div> |
|
|
<div> |
|
|
<h2 class="font-bold uppercase text-xl mt-8 mb-2"> |
|
|
<h2 class="font-bold uppercase text-xl mt-8 mb-2">Details</h2> |
|
|
{{ serverUtil.containsHiddenDid(veriClaim) ? "Visible " : "" }}Details |
|
|
|
|
|
</h2> |
|
|
|
|
|
<div |
|
|
<div |
|
|
v-if=" |
|
|
v-if=" |
|
|
serverUtil.containsHiddenDid(veriClaim) && |
|
|
serverUtil.containsHiddenDid(veriClaim) && |
|
@ -393,11 +395,12 @@ |
|
|
</button> |
|
|
</button> |
|
|
</span> |
|
|
</span> |
|
|
<span v-if="veriClaim.publicUrls?.[visDid]" |
|
|
<span v-if="veriClaim.publicUrls?.[visDid]" |
|
|
>, found at |
|
|
>, found at <a |
|
|
<fa icon="globe" class="fa-fw text-slate-400" /> <a |
|
|
|
|
|
:href="veriClaim.publicUrls?.[visDid]" |
|
|
:href="veriClaim.publicUrls?.[visDid]" |
|
|
class="text-blue-500" |
|
|
class="text-blue-500" |
|
|
>{{ |
|
|
> |
|
|
|
|
|
<fa icon="globe" class="fa-fw text-slate-400" /> |
|
|
|
|
|
{{ |
|
|
veriClaim.publicUrls[visDid].substring( |
|
|
veriClaim.publicUrls[visDid].substring( |
|
|
veriClaim.publicUrls[visDid].indexOf("//") + 2, |
|
|
veriClaim.publicUrls[visDid].indexOf("//") + 2, |
|
|
) |
|
|
) |
|
@ -428,7 +431,7 @@ |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<h2 class="font-bold uppercase 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). |
|
@ -761,13 +764,35 @@ export default class ClaimView extends Vue { |
|
|
console.error("Error retrieving full claim:", error); |
|
|
console.error("Error retrieving full claim:", error); |
|
|
const serverError = error as AxiosError; |
|
|
const serverError = error as AxiosError; |
|
|
if (serverError.response?.status === 403) { |
|
|
if (serverError.response?.status === 403) { |
|
|
|
|
|
let issuerPhrase = ""; |
|
|
|
|
|
const issuerContact = serverUtil.contactForDid( |
|
|
|
|
|
this.veriClaim.issuer, |
|
|
|
|
|
this.allContacts, |
|
|
|
|
|
); |
|
|
|
|
|
if (issuerContact?.name) { |
|
|
|
|
|
issuerPhrase += |
|
|
|
|
|
"Ask " + |
|
|
|
|
|
issuerContact.name + |
|
|
|
|
|
" to show you the full claim details."; |
|
|
|
|
|
} |
|
|
|
|
|
if ( |
|
|
|
|
|
this.confirmerIdList.length > 0 || |
|
|
|
|
|
this.confsVisibleToIdList.length > 0 |
|
|
|
|
|
) { |
|
|
|
|
|
if (issuerContact?.name) { |
|
|
|
|
|
issuerPhrase += |
|
|
|
|
|
"You could also ask someone in the Confirmations section to make an introduction."; |
|
|
|
|
|
} else { |
|
|
|
|
|
issuerPhrase += |
|
|
|
|
|
"Ask someone in the Confirmations section to make an introduction."; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
this.fullClaimMessage = |
|
|
this.fullClaimMessage = |
|
|
"You are not authorized to view the full contents of this claim." + |
|
|
"You are not authorized to view the full contents of this claim." + |
|
|
" To see all the details, ask the issuer to allow you to see their claims." + |
|
|
issuerPhrase + |
|
|
" If you cannot see the issuer's DID, ask someone in the Confirmations section above." + |
|
|
" You might ask someone in your network -- like the person who registered you --" + |
|
|
" If there are no connections, you will have to ask people in your" + |
|
|
" if they can find out more and make an introduction: " + |
|
|
" network for their help, some other way; send them to this page and" + |
|
|
" send them this page and see if they can make a connection for you."; |
|
|
" see if they can make a connection for you."; |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$notify( |
|
|
this.$notify( |
|
|
{ |
|
|
{ |
|
|