refactor button elements; change button types for search and filter actions in admin pages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user