harden deploy reports and admin alerts
This commit is contained in:
@@ -321,6 +321,11 @@ const AdminPage = (() => {
|
||||
await api("/admin/notifications/read-all", { method: "POST" });
|
||||
await loadNotifications();
|
||||
});
|
||||
qs("#retryNotificationsBtn")?.addEventListener("click", async () => {
|
||||
const result = await api("/admin/notifications/retry", { method: "POST" });
|
||||
toast(`Retry: service ${result.service_delivered}, admin ${result.admin_delivered}`);
|
||||
await loadNotifications();
|
||||
});
|
||||
document.querySelector("[data-list-filter='users']")?.addEventListener("submit", async (event) => {
|
||||
event.preventDefault();
|
||||
await loadUsers(formData(event.currentTarget).search || "");
|
||||
|
||||
Reference in New Issue
Block a user