Fixed accidental removal of Minter Board Links and updated to 0.42beta
This commit is contained in:
parent
64718cca37
commit
575ff48bb7
@ -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');
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user