switch to transactions tab and update navigation states for address and hash searches
This commit is contained in:
parent
2934f06846
commit
9934b506c2
18
index.html
18
index.html
@ -1668,6 +1668,15 @@
|
||||
await loadTransactionsPage(currentPage);
|
||||
updateURLWithAddress(address);
|
||||
|
||||
// Switch to transactions tab for address searches
|
||||
showPage('transactions');
|
||||
|
||||
// Update active states for navigation
|
||||
const navLinks = document.querySelectorAll('.nav-link, .nav-btn');
|
||||
navLinks.forEach(l => l.classList.remove('active'));
|
||||
document.querySelectorAll(`.nav-link[data-page="transactions"], .nav-btn[data-page="transactions"]`)
|
||||
.forEach(l => l.classList.add('active'));
|
||||
|
||||
showNotification('Loaded successfully!', 'success');
|
||||
|
||||
} catch (error) {
|
||||
@ -1913,6 +1922,15 @@
|
||||
// Update URL with hash parameter
|
||||
updateURLWithHash(transactionHash);
|
||||
|
||||
// Switch to transactions tab for hash searches
|
||||
showPage('transactions');
|
||||
|
||||
// Update active states for navigation
|
||||
const navLinks = document.querySelectorAll('.nav-link, .nav-btn');
|
||||
navLinks.forEach(l => l.classList.remove('active'));
|
||||
document.querySelectorAll(`.nav-link[data-page="transactions"], .nav-btn[data-page="transactions"]`)
|
||||
.forEach(l => l.classList.add('active'));
|
||||
|
||||
showNotification('Transaction details loaded successfully', 'success');
|
||||
|
||||
} catch (error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user