harden deploy reports and admin alerts
This commit is contained in:
@@ -84,7 +84,10 @@
|
||||
<p class="eyebrow">События</p>
|
||||
<h2>Admin notifications</h2>
|
||||
</div>
|
||||
<button type="button" id="readAllBtn">Прочитать все</button>
|
||||
<div class="row-actions">
|
||||
<button type="button" id="retryNotificationsBtn">Retry</button>
|
||||
<button type="button" id="readAllBtn">Прочитать все</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="notificationsList" class="stack-list"></div>
|
||||
</section>
|
||||
|
||||
@@ -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