From b83c118c7f7f6e120987654e33df3ece63d1d8fc Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Mon, 17 Aug 2026 06:42:21 -0400 Subject: [PATCH] Keep the SSH step visible until the partnership exists, not until the owner says its own phase 1 finished --- Plugin/unraid/Varaverk.page | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Plugin/unraid/Varaverk.page b/Plugin/unraid/Varaverk.page index 34923bf..17ff2c2 100644 --- a/Plugin/unraid/Varaverk.page +++ b/Plugin/unraid/Varaverk.page @@ -297,7 +297,18 @@ function vvRenderMirrorOnboard(opts) { const owner = vvEscHtml(opts.ownerName || 'the owner'); const dis = opts.hasPartner === false ? 'disabled style="opacity:.35;cursor:default;"' : ''; - if ((opts.phase ?? 0) >= 1) { + // Collapses at phase 2, not phase 1. + // + // HOST_PHASE1_DONE means the OWNER finished its Phase 1 — conf pushed, network created, + // confs cached. It says nothing about whether THIS host's key was ever installed on the owner, + // which is the only thing Step 1 does. Gating on it hid the terminal command at precisely the + // moment the mirror still needed it: flag set by the owner's push, key not installed, panel + // showing a button that cannot work. + // + // Phase 2 means the partnership is actually established, so the instructions have genuinely + // stopped being needed. Until then showing them costs nothing — a step already done reads as a + // reminder, a step still needed and hidden is a dead end. + if ((opts.phase ?? 0) >= 2) { return `