change around pings, fix main.js so the actual real fucking number shows instead of it freaking out.

This commit is contained in:
KingKDot
2026-07-09 13:55:36 -05:00
parent f96b3d0721
commit 43ee5a7d4b
12 changed files with 293 additions and 32 deletions
+12 -1
View File
@@ -1119,7 +1119,9 @@ function initializeRenderer() {
rendererSetLayout = rSetLayout;
registerRenderer((data, options) => {
renderMerge(data, options);
updateDashboardStatsFromClients(data);
if (isUnfilteredClientView()) {
updateDashboardStatsFromClients(data);
}
if (!options?.fromPluginDashboard) {
refreshDashboardPluginContributions(data?.items || []);
}
@@ -1151,6 +1153,15 @@ function initializeRenderer() {
}
}
function isUnfilteredClientView() {
return !state.searchTerm &&
(state.filterStatus || "all") === "all" &&
(state.filterOs || "all") === "all" &&
(state.filterCountry || "all") === "all" &&
(state.filterGroup || "all") === "all" &&
(state.filterWebcam || "all") === "all";
}
if (logoutBtn && !logoutBtn.dataset.boundLogout) {
logoutBtn.dataset.boundLogout = "true";
logoutBtn.addEventListener("click", async () => {