mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
overseer panel tweaking
This commit is contained in:
@@ -104,7 +104,10 @@ function buildVoteStatus() {
|
||||
const sockets = Array.from(io.sockets.sockets.values());
|
||||
let yesCount = 0;
|
||||
let noCount = 0;
|
||||
let eligibleCount = 0;
|
||||
sockets.forEach((socket) => {
|
||||
if (getRole(socket) === 'spectator') return;
|
||||
eligibleCount += 1;
|
||||
const pref = socket?.data?.overseerEnabled;
|
||||
if (typeof pref === 'boolean' ? pref : true) yesCount += 1;
|
||||
else noCount += 1;
|
||||
@@ -115,6 +118,7 @@ function buildVoteStatus() {
|
||||
yesCount,
|
||||
noCount,
|
||||
onlineCount,
|
||||
eligibleCount,
|
||||
gatePassed,
|
||||
running: Boolean(enabled && gatePassed && getMode() !== MODES.LOCKDOWN),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user