Revert monitor onboard indicator — belongs on Partnership page only

This commit is contained in:
Gmer4Lfe
2026-05-30 20:06:11 -04:00
parent c97a30b9c4
commit 192664605b
2 changed files with 6 additions and 21 deletions
+6 -12
View File
@@ -20,8 +20,6 @@ function vv_partner_state(): array {
$hostIds = array_filter(array_keys($vars), fn($k) => preg_match('/^HOST\d+$/', $k) && ($vars[$k] ?? '') !== '');
sort($hostIds);
$setupDb = vv_setup_state_read();
$hosts = [];
foreach ($hostIds as $id) {
$hostname = $vars[$id] ?? '';
@@ -29,17 +27,13 @@ function vv_partner_state(): array {
$isMe = strcasecmp($hostname, $myName) === 0;
$isOwner = strcasecmp($id, $vars['PARTNERSHIP_OWNER_HOST'] ?? '') === 0;
$online = $isMe ? true : ($tsPeers[strtolower($hostname)] ?? null);
$onboardPhase = $isMe ? null
: (($setupDb[$id . '_PHASE2_DONE'] ?? '') === 'true' ? 2
: (($setupDb[$id . '_PHASE1_DONE'] ?? '') === 'true' ? 1 : 0));
$hosts[] = [
'id' => $id,
'hostname' => $hostname,
'owner' => $vars[$id . '_OWNER'] ?? '',
'is_me' => $isMe,
'is_owner' => $isOwner,
'online' => $online,
'onboard_phase' => $onboardPhase,
'id' => $id,
'hostname' => $hostname,
'owner' => $vars[$id . '_OWNER'] ?? '',
'is_me' => $isMe,
'is_owner' => $isOwner,
'online' => $online,
];
}