|
@ -15,6 +15,7 @@ |
|
|
<span |
|
|
<span |
|
|
v-if=" |
|
|
v-if=" |
|
|
libsUtil.isGiveRecordTheUserCanConfirm( |
|
|
libsUtil.isGiveRecordTheUserCanConfirm( |
|
|
|
|
|
isRegistered, |
|
|
veriClaim, |
|
|
veriClaim, |
|
|
activeDid, |
|
|
activeDid, |
|
|
confirmerIdList, |
|
|
confirmerIdList, |
|
@ -33,6 +34,7 @@ |
|
|
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" |
|
|
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=" |
|
|
v-if=" |
|
|
libsUtil.isGiveRecordTheUserCanConfirm( |
|
|
libsUtil.isGiveRecordTheUserCanConfirm( |
|
|
|
|
|
isRegistered, |
|
|
veriClaim, |
|
|
veriClaim, |
|
|
activeDid, |
|
|
activeDid, |
|
|
confirmerIdList, |
|
|
confirmerIdList, |
|
@ -52,6 +54,7 @@ |
|
|
<fa icon="circle-check" class="ml-2 text-white cursor-pointer" /> |
|
|
<fa icon="circle-check" class="ml-2 text-white cursor-pointer" /> |
|
|
</button> |
|
|
</button> |
|
|
<a |
|
|
<a |
|
|
|
|
|
v-if="isRegistered" |
|
|
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 ml-2 px-4 py-2 rounded-md" |
|
|
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 ml-2 px-4 py-2 rounded-md" |
|
|
:href="urlForNewGive" |
|
|
:href="urlForNewGive" |
|
|
> |
|
|
> |
|
@ -431,6 +434,7 @@ export default class ClaimView extends Vue { |
|
|
giverName = ""; |
|
|
giverName = ""; |
|
|
issuerName = ""; |
|
|
issuerName = ""; |
|
|
isLoading = false; |
|
|
isLoading = false; |
|
|
|
|
|
isRegistered = false; |
|
|
numConfsNotVisible = 0; // number of hidden DIDs in the confirmerIdList, minus the issuer if they aren't visible |
|
|
numConfsNotVisible = 0; // number of hidden DIDs in the confirmerIdList, minus the issuer if they aren't visible |
|
|
recipientName = ""; |
|
|
recipientName = ""; |
|
|
showDetails = false; |
|
|
showDetails = false; |
|
@ -450,6 +454,7 @@ export default class ClaimView extends Vue { |
|
|
this.confsVisibleErrorMessage = ""; |
|
|
this.confsVisibleErrorMessage = ""; |
|
|
this.confsVisibleToIdList = []; |
|
|
this.confsVisibleToIdList = []; |
|
|
this.giveDetails = null; |
|
|
this.giveDetails = null; |
|
|
|
|
|
this.isRegistered = false; |
|
|
this.numConfsNotVisible = 0; |
|
|
this.numConfsNotVisible = 0; |
|
|
this.urlForNewGive = ""; |
|
|
this.urlForNewGive = ""; |
|
|
this.veriClaim = serverUtil.BLANK_GENERIC_SERVER_RECORD; |
|
|
this.veriClaim = serverUtil.BLANK_GENERIC_SERVER_RECORD; |
|
@ -463,6 +468,7 @@ export default class ClaimView extends Vue { |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
this.apiServer = settings?.apiServer || ""; |
|
|
this.allContacts = await db.contacts.toArray(); |
|
|
this.allContacts = await db.contacts.toArray(); |
|
|
|
|
|
this.isRegistered = settings?.isRegistered || false; |
|
|
|
|
|
|
|
|
await accountsDB.open(); |
|
|
await accountsDB.open(); |
|
|
const accounts = accountsDB.accounts; |
|
|
const accounts = accountsDB.accounts; |
|
@ -782,7 +788,17 @@ export default class ClaimView extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
notifyWhyCannotConfirm() { |
|
|
notifyWhyCannotConfirm() { |
|
|
if (!isGiveAction(this.veriClaim)) { |
|
|
if (!this.isRegistered) { |
|
|
|
|
|
this.$notify( |
|
|
|
|
|
{ |
|
|
|
|
|
group: "alert", |
|
|
|
|
|
type: "info", |
|
|
|
|
|
title: "Not Registered", |
|
|
|
|
|
text: "Someone needs to register you before you can contribute.", |
|
|
|
|
|
}, |
|
|
|
|
|
3000, |
|
|
|
|
|
); |
|
|
|
|
|
} else if (!isGiveAction(this.veriClaim)) { |
|
|
this.$notify( |
|
|
this.$notify( |
|
|
{ |
|
|
{ |
|
|
group: "alert", |
|
|
group: "alert", |
|
|