|
|
@ -178,19 +178,26 @@ export default class ClaimCertificateView extends Vue { |
|
|
|
ctx.fillText(amountText, (CANVAS_WIDTH - amountWidth) / 2, yPos); |
|
|
|
} |
|
|
|
|
|
|
|
// Draw claim issuer & recipient |
|
|
|
if (claimData.issuer) { |
|
|
|
// Draw claim issuer |
|
|
|
console.log("claimData.issuer", claimData.issuer); |
|
|
|
if (claimData.issuer == null |
|
|
|
|| serverUtil.isHiddenDid(claimData.issuer) |
|
|
|
// don't show if issuer claimed for themselves |
|
|
|
// (The confirmations are the good stuff anyway, and self-issued certs shouldn't detract from that.) |
|
|
|
|| claimData.issuer !== claimData.claim.agent?.identifier) { |
|
|
|
ctx.font = "14px Arial"; |
|
|
|
let fullIssuer = serverUtil.didInfoForCertificate( |
|
|
|
claimData.issuer, |
|
|
|
allContacts, |
|
|
|
); |
|
|
|
if (fullIssuer.length > 15) { |
|
|
|
if (fullIssuer.length > 30) { |
|
|
|
fullIssuer = fullIssuer.substring(0, 30) + "..."; |
|
|
|
} |
|
|
|
const issuerText = "Issued by " + fullIssuer; |
|
|
|
ctx.fillText(issuerText, CANVAS_WIDTH * 0.3, CANVAS_HEIGHT * 0.6); |
|
|
|
} |
|
|
|
|
|
|
|
// Draw number of claim confirmers |
|
|
|
if (confirmerIds.length > 0) { |
|
|
|
const confirmerText = |
|
|
|
"Confirmed by " + |
|
|
|