+ refresh address list

* changed icon for transactions refresh button
This commit is contained in:
Taegus
2019-01-05 20:54:27 +01:00
parent 0aa73d3930
commit f00c249551
3 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<div id="walletsToolbar">
<button type="button" class="btn btn-etho" id="btnNewAddress"><i class="fas fa-plus"></i></button>
<button type="button" class="btn btn-etho" id="btnRefreshAddress"><i class="fas fa-sync-alt"></i></button>
<button type="button" class="btn btn-etho" id="btnExportAccounts"><i class="fas fa-file-export"></i></button>
<button type="button" class="btn btn-etho" id="btnImportAccounts"><i class="fas fa-file-import"></i></button>
<button type="button" class="btn btn-etho" id="btnImportFromPrivateKey"><i class="fas fa-key"></i></button>

View File

@@ -24,7 +24,7 @@ class tableTransactions {
"buttons":
[
{
text: 'Refresh',
text: '<i class="fas fa-sync-alt"></i>',
action: function ( e, dt, node, config ) {
EthoTransactions.renderTransactions();
}

View File

@@ -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', {});