Keep the SSH step visible until the partnership exists, not until the owner says its own phase 1 finished
This commit is contained in:
@@ -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<n>_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 `<div style="padding:10px 12px;background:#0d0d0d;border:1px solid #1e1e1e;border-radius:4px;">
|
||||
<div style="display:flex;align-items:center;justify-content:space-between;gap:10px;">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user