Skip to content

Commit 41353e0

Browse files
committed
fix: update verification card copy and manifest state tracking
- Remove reference to 'people listed below' in verification note since the contact list may not exist (e.g. anonymous bundles or non-personalized recover.html) - Call updateVerificationStatus() from showManifestLoaded() and clearManifest() so the card reflects current manifest state
1 parent b0fc7e8 commit 41353e0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

internal/html/assets/src/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,8 @@ type UIShare = ParsedShare & { isHolder?: boolean };
11621162
const clearBtn = elements.manifestStatus.querySelector('.clear-manifest');
11631163
clearBtn?.addEventListener('click', clearManifest);
11641164
}
1165+
1166+
updateVerificationStatus();
11651167
}
11661168

11671169
function clearManifest(): void {
@@ -1171,6 +1173,7 @@ type UIShare = ParsedShare & { isHolder?: boolean };
11711173
elements.manifestStatus?.classList.remove('loaded');
11721174
elements.manifestDropZone?.classList.remove('hidden');
11731175
checkRecoverReady();
1176+
updateVerificationStatus();
11741177
}
11751178

11761179
// ============================================

internal/translations/recover/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,5 @@
9898
"verification_threshold": "At least {0} pieces are needed for recovery.",
9999
"verification_manifest_ok": "Encrypted archive is pre-loaded.",
100100
"verification_manifest_missing": "The encrypted archive will need to be provided during recovery.",
101-
"verification_keep_safe": "Keep this bundle somewhere safe. When recovery is needed, contact the people listed below."
101+
"verification_keep_safe": "Keep this bundle somewhere safe. When the time comes, you and the others will combine your pieces to recover."
102102
}

0 commit comments

Comments
 (0)