From 6eb3d2f85960fd870be85722496a0c9720b0e461 Mon Sep 17 00:00:00 2001 From: Philemon Ukane Date: Mon, 29 Jan 2024 15:10:03 +0100 Subject: [PATCH] fix rebase issues Signed-off-by: Philemon Ukane --- ui/modal/info_modal.go | 10 +++++++--- ui/page/root/home_page.go | 5 +---- ui/values/localizable/en.go | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ui/modal/info_modal.go b/ui/modal/info_modal.go index e21b81b26..fc922cae6 100644 --- a/ui/modal/info_modal.go +++ b/ui/modal/info_modal.go @@ -298,9 +298,13 @@ func (in *InfoModal) Handle() { isChecked = in.checkbox.CheckBox.Value } - if in.positiveButtonClicked(isChecked, in) { - in.Dismiss() - } + in.SetLoading(true) + go func() { + if in.positiveButtonClicked(isChecked, in) { + in.Dismiss() + } + in.SetLoading(false) + }() } for in.btnNegative.Clicked() { diff --git a/ui/page/root/home_page.go b/ui/page/root/home_page.go index 286ddd7cc..01e11b41c 100644 --- a/ui/page/root/home_page.go +++ b/ui/page/root/home_page.go @@ -154,10 +154,7 @@ func (hp *HomePage) OnNavigatedTo() { hp.initDEX() go hp.CalculateAssetsUSDBalance() - if !hp.AssetsManager.DEXCInitialized() { - go hp.AssetsManager.InitializeDEX(hp.dexCtx) - } - + if hp.CurrentPage() == nil { hp.Display(NewOverviewPage(hp.Load, hp.showNavigationFunc)) } diff --git a/ui/values/localizable/en.go b/ui/values/localizable/en.go index 2d0d19382..c9e4c8330 100644 --- a/ui/values/localizable/en.go +++ b/ui/values/localizable/en.go @@ -377,7 +377,7 @@ const EN = ` "noActiveTickets" = "No active tickets" "noAgendaYet" = "No agendas yet" "noConnectedPeer" = "no connected peers." -"noExchangeOnTestnet" = "Exchange functionality is not available on the test network"" +"noExchangeOnTestnet" = "Exchange functionality is not available on the test network" "noInternet" = "no Internet Connectivity." "nonAccSelector" = "This widget isn't set to show accounts" "none" = "None" @@ -908,7 +908,7 @@ const EN = ` "iWillGet" = "I'll get" "iWillGive" = "I'll give" "noSupportedMarketMsg" = "Oops, there are no supported market at the moment. Please choose another server." -"postBondMsg" = ""You have zero effective tiers. Please post bonds to trade." +"postBondMsg" = "You have zero effective tiers. Please post bonds to trade." "bondPostingInProgressMsg" = "You have zero effective tiers but bond posting is in progress. Please ensure your %s(%s) wallet account %s is funded with at least %s and is syncing." "maxDEX" = "Max %s: %s" "availableBalance" = "Available Balance: %s"