From 6726ca0c2d277994ac4811376faba5b24c5fb1e5 Mon Sep 17 00:00:00 2001 From: jude Date: Sat, 19 Aug 2023 19:24:06 +0100 Subject: [PATCH] Correct migration script. Stub code for routes. Update existing routes to set the reminder's guild ID. --- web/static/js/reminder_errors.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/static/js/reminder_errors.js diff --git a/web/static/js/reminder_errors.js b/web/static/js/reminder_errors.js new file mode 100644 index 0000000..6fa4798 --- /dev/null +++ b/web/static/js/reminder_errors.js @@ -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', () => { + +})