refactor button elements; change button types for search and filter actions in admin pages

This commit is contained in:
ImBenji
2026-04-23 23:40:44 +01:00
parent eedd499262
commit 16cd61fdf5
6 changed files with 21 additions and 24 deletions
+5 -4
View File
@@ -7,18 +7,19 @@ async function loadIntelStatsRow() {
if (!row) return true;
const data = await api("/admin/api/intelligence/stats");
const notice = document.getElementById("intel-unavailable");
const content = document.getElementById("intel-content");
if (!data.available) {
const notice = document.getElementById("intel-unavailable");
const content = document.getElementById("intel-content");
if (notice) notice.style.display = "";
if (content) content.style.display = "none";
row.style.display = "none"; // hide the full-width stats strip too
return false;
}
const notice = document.getElementById("intel-unavailable");
const content = document.getElementById("intel-content");
if (notice) notice.style.display = "none";
if (content) content.style.display = "";
row.style.display = "";
const queueMap = {};
(data.queue || []).forEach(r => queueMap[r.status] = r.n);