Add address-token detail view for per-token transaction filtering
All checks were successful
check / check (push) Successful in 17s
All checks were successful
check / check (push) Successful in 17s
Clicking a token balance on the address detail view navigates to a focused view showing only that token's transactions. Send pre-selects and locks the token dropdown, Receive shows an ERC-20 warning for non-ETH tokens, and all back buttons return to the correct parent view.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { $, showFlash } = require("./helpers");
|
||||
const { state } = require("../../shared/state");
|
||||
|
||||
function init(ctx) {
|
||||
$("btn-receive-copy").addEventListener("click", () => {
|
||||
@@ -9,7 +10,13 @@ function init(ctx) {
|
||||
}
|
||||
});
|
||||
|
||||
$("btn-receive-back").addEventListener("click", ctx.showAddressDetail);
|
||||
$("btn-receive-back").addEventListener("click", () => {
|
||||
if (state.selectedToken) {
|
||||
ctx.showAddressToken();
|
||||
} else {
|
||||
ctx.showAddressDetail();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { init };
|
||||
|
||||
Reference in New Issue
Block a user