Setup mode: HOST1 lands on Partnership with Onboard highlighted
scheduler.php: after host1.conf save in setup mode, redirect to ?tab=partnership&vv_onboard=1 instead of Monitor. HOST2+ still redirects to Monitor (they don't manage the partnership). partnership.php: detects vv_onboard=1 URL param after actions render. Adds pulse animation + box-shadow to the Onboard button and scrolls it into view. One-shot — gone when user navigates away.
This commit is contained in:
@@ -2627,9 +2627,16 @@ function vvSaveRawConf() {
|
||||
setTimeout(() => vvLoadRawConf(vvLocalHostConf), 400);
|
||||
} else {
|
||||
// Host conf saved → setup complete
|
||||
btn.textContent = '✓ Setup complete — loading plugin…';
|
||||
vvSetupConf = '';
|
||||
setTimeout(() => { window.location.href = location.pathname + '?tab=monitor'; }, 800);
|
||||
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);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user