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

Loading…
Cancel
Save