Fixed accidental removal of Minter Board Links and updated to 0.42beta

This commit is contained in:
crowetic 2024-12-17 08:35:41 -08:00
parent 64718cca37
commit 575ff48bb7
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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) {