Setup: all hosts land on Partnership after conf setup, not just HOST1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user