diff --git a/Plugin/unraid/Varaverk.page b/Plugin/unraid/Varaverk.page index 7c32b22..380e5b0 100644 --- a/Plugin/unraid/Varaverk.page +++ b/Plugin/unraid/Varaverk.page @@ -332,6 +332,33 @@ function vvRenderMirrorOnboard(opts) { // 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. + // Phase 2 runs on the OWNER and takes minutes — 4m05s on a measured run, longer as the arr + // library grows. The mirror's own job finishes in about three seconds, because all it does is + // send the notification, so for the rest of that window the screen showed the unchanged + // phase-1 panel with a greyed-out button and no statement that anything was happening + // elsewhere. That reads as a hang, and the reasonable response to a hang is to start clicking. + if ((opts.phase ?? 0) < 2 && opts.waiting) { + const mins = opts.waitingSince + ? Math.floor((Date.now() - opts.waitingSince) / 60000) : 0; + const secs = opts.waitingSince + ? Math.floor(((Date.now() - opts.waitingSince) % 60000) / 1000) : 0; + return `