diff --git a/src/popup/index.html b/src/popup/index.html
index d5cd832..8f8e499 100644
--- a/src/popup/index.html
+++ b/src/popup/index.html
@@ -363,6 +363,26 @@
>
+ Token
+
+
+
+
@@ -374,13 +394,6 @@
Loading...
-
- Export private key
-
diff --git a/src/popup/views/addressDetail.js b/src/popup/views/addressDetail.js
index 5e5fa2d..7e798fc 100644
--- a/src/popup/views/addressDetail.js
+++ b/src/popup/views/addressDetail.js
@@ -268,7 +268,22 @@ function init(_ctx) {
$("btn-add-token").addEventListener("click", ctx.showAddTokenView);
+ // More menu dropdown
+ const moreBtn = $("btn-more-menu");
+ const moreDropdown = $("more-menu-dropdown");
+ moreBtn.addEventListener("click", (e) => {
+ e.stopPropagation();
+ moreDropdown.classList.toggle("hidden");
+ });
+ document.addEventListener("click", () => {
+ moreDropdown.classList.add("hidden");
+ });
+ moreDropdown.addEventListener("click", (e) => {
+ e.stopPropagation();
+ });
+
$("btn-export-privkey").addEventListener("click", () => {
+ moreDropdown.classList.add("hidden");
const wallet = state.wallets[state.selectedWallet];
const addr = wallet.addresses[state.selectedAddress];
const title = addressTitle(addr.address, state.wallets);