From c5dfd29d944416d7e65c3b64cab8d37b55e32389 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Mon, 3 Feb 2025 00:16:18 -0500 Subject: [PATCH] highlight current approval admin row --- assets/js/MinterBoard.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/js/MinterBoard.js b/assets/js/MinterBoard.js index 079e735..19d52db 100644 --- a/assets/js/MinterBoard.js +++ b/assets/js/MinterBoard.js @@ -1826,8 +1826,18 @@ const buildApprovalTableHtml = async (approvalTxs, getNameFunc) => { : "(No registered name)" const dateStr = new Date(tx.timestamp).toLocaleString() + // Check whether this is the current user + const isCurrentUser = + userState && + userState.accountName && + adminName && + adminName.toLowerCase() === userState.accountName.toLowerCase(); + // If it's the current user, highlight the row (change to any color/style you prefer) + const rowStyle = isCurrentUser + ? "background: rgba(178, 255, 89, 0.2);" // light green highlight + : "" return ` - + ${displayName} ${dateStr}