rebranding upgrade and various fixes

This commit is contained in:
d0x
2024-04-28 22:20:58 -07:00
parent 2ba29503f6
commit 6db10719a7
24 changed files with 486 additions and 285 deletions

View File

@@ -114,7 +114,7 @@ class Wallets {
$(document).trigger("render_wallets");
EthoWallets.enableButtonTooltips();
$("#labelSumDollars").html(vsprintf("/ %.2f $ / %.4f $ per ETHO", [
$("#labelSumDollars").html(vsprintf("= %.2f 💵 | %.4f 💵 per", [
data.sumBalance * EthoWallets._getPrice(),
EthoWallets._getPrice()
]));
@@ -231,15 +231,23 @@ $(document).on("render_wallets", function () {
ipcRenderer.send("exportAccounts", {});
});
$("#btnImportAccounts").off("click").on("click", function () {
var ImportResult = ipcRenderer.sendSync("importAccounts", {});
$("#btnImportAccounts").off("click").on("click", function () {
ipcRenderer.send("importAccounts");
ipcRenderer.once("importAccountsReply", (event, importResult) => {
if (importResult.success) {
iziToast.success({ title: "Imported", message: importResult.text, position: "topRight", timeout: 2000 });
// Reload wallets after successful import
setTimeout(() => {
EthoWallets.renderWalletsState();
}, 500);
} else {
EthoMainGUI.showGeneralError(importResult.text);
}
});
});
if (ImportResult.success) {
iziToast.success({title: "Imported", message: ImportResult.text, position: "topRight", timeout: 2000});
} else if (ImportResult.success == false) {
EthoMainGUI.showGeneralError(ImportResult.text);
}
});
$("#btnImportFromPrivateKey").off("click").on("click", function () {
$("#dlgImportFromPrivateKey").iziModal();