forked from trent_larson/crowd-funder-for-time-pwa
don't show issuer for self-issued claims
This commit is contained in:
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
|
||||||
|
## [0.3.40] - 2024.12.20
|
||||||
|
### Added
|
||||||
|
- Only show issuer on certificate if it's not the agent
|
||||||
|
|
||||||
|
|
||||||
## [0.3.39] - 2024.12.20 - d8819155e2acd2b57fdab523168fa5d1d09e80cc
|
## [0.3.39] - 2024.12.20 - d8819155e2acd2b57fdab523168fa5d1d09e80cc
|
||||||
### Added
|
### Added
|
||||||
- Page for a framed claim certificate
|
- Page for a framed claim certificate
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "TimeSafari",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.40-beta",
|
"version": "0.3.40",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "TimeSafari",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.40-beta",
|
"version": "0.3.40",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capacitor/android": "^6.1.2",
|
"@capacitor/android": "^6.1.2",
|
||||||
"@capacitor/cli": "^6.1.2",
|
"@capacitor/cli": "^6.1.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TimeSafari",
|
"name": "TimeSafari",
|
||||||
"version": "0.3.40-beta",
|
"version": "0.3.40",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
|
|||||||
@@ -178,19 +178,26 @@ export default class ClaimCertificateView extends Vue {
|
|||||||
ctx.fillText(amountText, (CANVAS_WIDTH - amountWidth) / 2, yPos);
|
ctx.fillText(amountText, (CANVAS_WIDTH - amountWidth) / 2, yPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw claim issuer & recipient
|
// Draw claim issuer
|
||||||
if (claimData.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";
|
ctx.font = "14px Arial";
|
||||||
let fullIssuer = serverUtil.didInfoForCertificate(
|
let fullIssuer = serverUtil.didInfoForCertificate(
|
||||||
claimData.issuer,
|
claimData.issuer,
|
||||||
allContacts,
|
allContacts,
|
||||||
);
|
);
|
||||||
if (fullIssuer.length > 15) {
|
if (fullIssuer.length > 30) {
|
||||||
fullIssuer = fullIssuer.substring(0, 30) + "...";
|
fullIssuer = fullIssuer.substring(0, 30) + "...";
|
||||||
}
|
}
|
||||||
const issuerText = "Issued by " + fullIssuer;
|
const issuerText = "Issued by " + fullIssuer;
|
||||||
ctx.fillText(issuerText, CANVAS_WIDTH * 0.3, CANVAS_HEIGHT * 0.6);
|
ctx.fillText(issuerText, CANVAS_WIDTH * 0.3, CANVAS_HEIGHT * 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Draw number of claim confirmers
|
||||||
if (confirmerIds.length > 0) {
|
if (confirmerIds.length > 0) {
|
||||||
const confirmerText =
|
const confirmerText =
|
||||||
"Confirmed by " +
|
"Confirmed by " +
|
||||||
|
|||||||
Reference in New Issue
Block a user