Extract error sections to templates

This commit is contained in:
jude committed 2023-08-13 18:29:30 +01:00
1 parent 68ba25886a
commit 5a85f1d83a
5 files changed
+60 -27

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
let _reminderErrors = [];
const reminderErrors = () => {
return _reminderErrors;
}
const guildId = () => {
let selected: HTMLElement = document.querySelector(".guildList a.is-active");
return selected.dataset["guild"];
}
function loadErrors() {
fetch(`/dashboard/api/guild/${guildId()}/errors`).then(response => response.json())
}
document.addEventListener('DOMContentLoaded', () => {
})