change around pings, fix main.js so the actual real fucking number shows instead of it freaking out.
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user