Setup: all hosts land on Partnership after conf setup, not just HOST1

This commit is contained in:
Gmer4Lfe
2026-05-30 15:53:52 -04:00
parent 64f2c89a40
commit 974e3cf2cf
+3 -10
View File
@@ -2626,17 +2626,10 @@ function vvSaveRawConf() {
history.replaceState(null, '', location.pathname + '?tab=scheduler&vv_setup=' + encodeURIComponent(vvLocalHostConf));
setTimeout(() => vvLoadRawConf(vvLocalHostConf), 400);
} else {
// Host conf saved → setup complete
// Host conf saved → go to Partnership so SSH keys get set up
vvSetupConf = '';
if (vvLocalHostConf === 'host1.conf') {
// HOST1: drive the partnership next
btn.textContent = '✓ Done — opening Partnership…';
setTimeout(() => { window.location.href = location.pathname + '?tab=partnership&vv_onboard=1'; }, 800);
} else {
// HOST2+: go to Monitor, HOST1 manages the partnership
btn.textContent = '✓ Setup complete — loading plugin…';
setTimeout(() => { window.location.href = location.pathname + '?tab=monitor'; }, 800);
}
btn.textContent = '✓ Done — opening Partnership…';
setTimeout(() => { window.location.href = location.pathname + '?tab=partnership&vv_onboard=1'; }, 800);
}
return;
}