Browse Source

ask for confirmation before submitting a confirm claim

kb/add-usage-guide
Trent Larson 12 months ago
parent
commit
59d0772881
  1. 4
      src/views/ClaimView.vue

4
src/views/ClaimView.vue

@ -121,7 +121,7 @@
You have confirmed this claim.
</div>
<div v-else-if="containsHiddenDid(veriClaim.claim)">
You cannot confirm this claim because it contains a DID that is hidden
You cannot confirm this claim because it contains data that is hidden
from you.
</div>
<div v-else>
@ -419,6 +419,7 @@ export default class ClaimView extends Vue {
}
async confirmClaim() {
if (confirm("Do you personally confirm that this is true?")) {
// similar logic is found in endorser-mobile
const goodClaim = serverUtil.removeSchemaContext(
serverUtil.removeVisibleToDids(
@ -466,5 +467,6 @@ export default class ClaimView extends Vue {
);
}
}
}
}
</script>

Loading…
Cancel
Save