diff --git a/src/libs/util.ts b/src/libs/util.ts index c11f046..47195e5 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -348,9 +348,9 @@ export function offerGiverDid( export const canFulfillOffer = ( veriClaim: GenericCredWrapper, ) => { - return !!( + return ( veriClaim.claimType === "Offer" && - offerGiverDid(veriClaim as GenericCredWrapper) + !!offerGiverDid(veriClaim as GenericCredWrapper) ); }; diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index adf572e..e58f4aa 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -201,11 +201,15 @@ - Nobody has confirmed this. - - One person has confirmed this. - - {{ totalConfirmers() }} people have confirmed this. +
+ Nobody has confirmed this. + + One person has confirmed this. + + + {{ totalConfirmers() }} people have confirmed this. + +
-

- {{ serverUtil.containsHiddenDid(veriClaim) ? "Visible " : "" }}Details -

+

Details

-

Full Claim

+

Full Claim

The full claim includes the claim as it was originally issued, including 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); const serverError = error as AxiosError; 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 = "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." + - " If you cannot see the issuer's DID, ask someone in the Confirmations section above." + - " If there are no connections, you will have to ask people in your" + - " network for their help, some other way; send them to this page and" + - " see if they can make a connection for you."; + issuerPhrase + + " You might ask someone in your network -- like the person who registered you --" + + " if they can find out more and make an introduction: " + + " send them this page and see if they can make a connection for you."; } else { this.$notify( { diff --git a/src/views/ConfirmGiftView.vue b/src/views/ConfirmGiftView.vue index 737a30a..8c91adc 100644 --- a/src/views/ConfirmGiftView.vue +++ b/src/views/ConfirmGiftView.vue @@ -54,13 +54,6 @@ Confirm - - Record a Similar One -

@@ -264,13 +257,13 @@

- {{ serverUtil.containsHiddenDid(veriClaim) ? "Visible " : "" }}Details - + Details +

-
+
click to send them this info - and see if they are willing to make an introduction. + and see if they are willing to make an introduction. They are surely + connected to someone; if you don't know who to ask, you might try + the person who registered you. If you'd like to ask any of your contacts to take a look and see if @@ -313,7 +308,9 @@ If you'd like an introduction, share this page with them and ask if they'll tell you more about about the participants.{{ veriClaimDump }} + +
This does not have details to confirm.
- -
@@ -403,7 +403,9 @@ :fromProjectId="this.projectId" /> -

Benefitted By This

+

+ Benefitted From This Project +

(None yet.)