From 575ff48bb78b11805716e0f179159ca5986715d4 Mon Sep 17 00:00:00 2001 From: crowetic Date: Tue, 17 Dec 2024 08:35:41 -0800 Subject: [PATCH] Fixed accidental removal of Minter Board Links and updated to 0.42beta --- assets/js/AdminTools.js | 2 +- assets/js/MinterDataBoard.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/AdminTools.js b/assets/js/AdminTools.js index 3992358..d396314 100644 --- a/assets/js/AdminTools.js +++ b/assets/js/AdminTools.js @@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', async () => { console.log(`User is an Admin, buttons for MA Tools not removed. userState.isAdmin = ${userState.isMinterAdmin}`); } else { // Remove all "TOOLS" links and their related elements - const toolsLinks = document.querySelectorAll('a[href="TOOLS"], a[href="MINTER-BOARD"], a[href="MINTERS"]'); + const toolsLinks = document.querySelectorAll('a[href="TOOLS"], a[href="DATA-BOARD"]'); toolsLinks.forEach(link => { // If the link is within a button, remove the button const buttonParent = link.closest('button'); diff --git a/assets/js/MinterDataBoard.js b/assets/js/MinterDataBoard.js index 91ece95..c9b75ed 100644 --- a/assets/js/MinterDataBoard.js +++ b/assets/js/MinterDataBoard.js @@ -11,9 +11,9 @@ document.addEventListener("DOMContentLoaded", async () => { // Verify admin status and hide/show buttons if (await isAdmin()) { document.addEventListener("DOMContentLoaded", async () => { - const minterBoardLinks = document.querySelectorAll('a[href="MINTER-DATA-BOARD"], a[href="DATA-BOARD"]'); + const minterDataBoardLinks = document.querySelectorAll('a[href="DATA-BOARD"]'); - minterBoardLinks.forEach(link => { + minterDataBoardLinks.forEach(link => { link.addEventListener("click", async (event) => { event.preventDefault(); if (!userState.isLoggedIn) {