05/18 Enhanced codes and functionalities 10
This commit is contained in:
@@ -1816,6 +1816,16 @@ const Vault = (() => {
|
||||
if (g.status === "accepted") {
|
||||
actions = `<button class="btn-primary btn-sm" data-provide="${g.id}">Provide Recovery Data</button>`;
|
||||
}
|
||||
if (g.status === "ready") {
|
||||
// Check if the stored snapshot is in the old format (plaintext names).
|
||||
if (g.enc_vault_is_legacy) {
|
||||
actions = `
|
||||
<span class="badge badge-warn" title="Recovery snapshot contains plaintext item names. Re-provision to encrypt them.">⚠ Outdated snapshot</span>
|
||||
<button class="btn-primary btn-sm" data-provide="${g.id}">Re-provision</button>`;
|
||||
} else {
|
||||
actions = `<button class="btn-secondary btn-sm" data-provide="${g.id}">Update Recovery Data</button>`;
|
||||
}
|
||||
}
|
||||
if (g.status === "pending") {
|
||||
const waitInfo = g.wait_elapsed
|
||||
? "Wait period elapsed"
|
||||
|
||||
Reference in New Issue
Block a user