show total reminders and intervals on admin dash

This commit is contained in:
jude
2023-07-10 09:59:11 +01:00
parent dda8bd3e10
commit 1a1a0fdefb
3 changed files with 38 additions and 0 deletions

View File

@ -3,6 +3,8 @@ document.addEventListener("DOMContentLoaded", () => {
.then((resp) => resp.json())
.then((data) => {
document.querySelector("#backlog").textContent = data.backlog;
document.querySelector("#reminders").textContent = data.count.reminders;
document.querySelector("#intervals").textContent = data.count.intervals;
new Chart(document.getElementById("schedule"), {
type: "bar",