* address list addresses always in uppercase

+ copy address list address to clipboard
+ show address names under the addresses in the send screen
This commit is contained in:
Taegus
2019-02-03 11:13:36 +01:00
parent 3fa90b2e48
commit 91356cfc8f
5 changed files with 49 additions and 7 deletions

View File

@@ -8,14 +8,14 @@ class AddressBook {
var addressBook = EthoDatatabse.getAddresses();
// set the wallet name from the dialog box
addressBook.names[address] = name;
addressBook.names[address.toUpperCase()] = name;
EthoDatatabse.setAddresses(addressBook);
}
getAddressName(address) {
var addressBook = EthoDatatabse.getAddresses();
// set the wallet name from the dialog box
return addressBook.names[address] || "";
return addressBook.names[address.toUpperCase()] || "";
}
getAddressList() {
@@ -131,6 +131,17 @@ $(document).on("render_addressBook", function() {
EthoAddressBook.renderAddressBook();
});
});
$(".textAddress").off('click').on('click', function() {
EthoMainGUI.copyToClipboard($(this).html());
iziToast.success({
title: 'Copied',
message: 'Address was copied to clipboard',
position: 'topRight',
timeout: 2000
});
});
});
EthoAddressBook = new AddressBook();