From 52cf642455f05853d49e8f0032110c93e1f2fb39 Mon Sep 17 00:00:00 2001 From: jude Date: Sat, 23 Sep 2023 20:32:57 +0100 Subject: [PATCH] Send edit button to beta dashboard --- src/commands/reminder_cmds.rs | 2 +- web/static/js/reminder_errors.ts | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 web/static/js/reminder_errors.ts diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index 19030fb..3cbd1ef 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -773,7 +773,7 @@ async fn create_reminder( b.emoji(ReactionType::Unicode("📝".to_string())) .label("Edit") .style(ButtonStyle::Link) - .url("https://reminder-bot.com/dashboard") + .url("https://beta.reminder-bot.com/dashboard") }) }) }) diff --git a/web/static/js/reminder_errors.ts b/web/static/js/reminder_errors.ts deleted file mode 100644 index 6fa4798..0000000 --- a/web/static/js/reminder_errors.ts +++ /dev/null @@ -1,19 +0,0 @@ -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', () => { - -})