Update wallets.js
Event listener for click button
This commit is contained in:
@@ -178,6 +178,20 @@ $(document).on("render_wallets", function () {
|
|||||||
$("#dlgShowAddressQRCode").iziModal("close");
|
$("#dlgShowAddressQRCode").iziModal("close");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".btnDeleteAddress").off("click").on("click", function () {
|
||||||
|
const address = $(this).attr("data-wallet");
|
||||||
|
EthoMainGUI.showGeneralConfirmation(
|
||||||
|
`Do you really want to delete Wallet with Address: ${address}? This action can not be reversed.`,
|
||||||
|
function (result) {
|
||||||
|
if (result) {
|
||||||
|
const deleteResult = ipcRenderer.sendSync('deteteAccount', address);
|
||||||
|
if (deleteResult !== true) EthoMainGUI.showGeneralError(deleteResult);
|
||||||
|
setTimeout(EthoWallets.renderWalletsState, 1000);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
$(".btnChangWalletName").off("click").on("click", function () {
|
$(".btnChangWalletName").off("click").on("click", function () {
|
||||||
var walletAddress = $(this).attr("data-wallet");
|
var walletAddress = $(this).attr("data-wallet");
|
||||||
@@ -279,4 +293,4 @@ $(document).on("onNewAccountTransaction", function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
EthoWallets = new Wallets();
|
EthoWallets = new Wallets();
|
||||||
|
|||||||
Reference in New Issue
Block a user