feat(console): add or remove all monitors of a status page, skip signup when signed in

The status page editor gets "Add all" and "Remove all" above its monitor
list. Opening the signup page while signed in leads to the monitor list,
as the login page already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-25 23:19:27 +01:00
1 parent feaa1e930d
commit 4cde0f7e56
7 files changed
+463 -381

No files matched your search

+9
View File
@@ -186,6 +186,15 @@
navToggle.setAttribute("aria-expanded", String(open));
return;
}
// Ticks or clears every checkbox named by data-check-all in its form.
const checkAll = ev.target.closest("[data-check-all]");
if (checkAll) {
const on = checkAll.dataset.checkAll === "on";
checkAll.closest("form")?.querySelectorAll(checkAll.dataset.checkTarget).forEach((box) => {
box.checked = on;
});
return;
}
const locale = ev.target.closest("[data-locale]");
if (locale) {
await api.post("/locale", { locale: locale.dataset.locale }).catch(() => {});