From f00c24955132998a0a00a4dadf0c6f7a6416d970 Mon Sep 17 00:00:00 2001 From: Taegus Date: Sat, 5 Jan 2019 20:54:27 +0100 Subject: [PATCH] + refresh address list * changed icon for transactions refresh button --- assets/templates/wallets.html | 1 + renderer/tableTransactions.js | 2 +- renderer/wallets.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/templates/wallets.html b/assets/templates/wallets.html index 5c83da2..80605aa 100644 --- a/assets/templates/wallets.html +++ b/assets/templates/wallets.html @@ -1,5 +1,6 @@
+ diff --git a/renderer/tableTransactions.js b/renderer/tableTransactions.js index 6b1862e..df72a51 100644 --- a/renderer/tableTransactions.js +++ b/renderer/tableTransactions.js @@ -24,7 +24,7 @@ class tableTransactions { "buttons": [ { - text: 'Refresh', + text: '', action: function ( e, dt, node, config ) { EthoTransactions.renderTransactions(); } diff --git a/renderer/wallets.js b/renderer/wallets.js index 3de7876..1b44380 100644 --- a/renderer/wallets.js +++ b/renderer/wallets.js @@ -42,6 +42,7 @@ class Wallets { enableButtonTooltips() { EthoUtils.createToolTip("#btnNewAddress", "Create New Address"); + EthoUtils.createToolTip("#btnRefreshAddress", "Refresh Address List"); EthoUtils.createToolTip("#btnExportAccounts", "Export Accounts"); EthoUtils.createToolTip("#btnImportAccounts", "Import Accounts"); EthoUtils.createToolTip("#btnImportFromPrivateKey", "Import From Private Key"); @@ -173,6 +174,10 @@ $(document).on("render_wallets", function() { } }); }); + + $("#btnRefreshAddress").off('click').on('click', function() { + EthoWallets.renderWalletsState(); + }); $("#btnExportAccounts").off('click').on('click', function() { ipcRenderer.send('exportAccounts', {});