From 4f120d99f72fee06c347fbcfc734d97d0f6c0596 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 16 Apr 2020 15:04:12 -0400 Subject: [PATCH] fix: show message when loading new transactions instead of no tx msg Signed-off-by: Andrey Shovkoplyas --- src/status_im/ui/screens/wallet/transactions/views.cljs | 4 +++- translations/en.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/wallet/transactions/views.cljs b/src/status_im/ui/screens/wallet/transactions/views.cljs index ab60e98cce..613504cc05 100644 --- a/src/status_im/ui/screens/wallet/transactions/views.cljs +++ b/src/status_im/ui/screens/wallet/transactions/views.cljs @@ -113,7 +113,9 @@ :render-fn #(render-transaction %) :empty-component [react/i18n-text {:style styles/empty-text - :key :transactions-history-empty}] + :key (if (or fetching-recent-history? fetching-more-history?) + :transactions-history-loading + :transactions-history-empty)}] :refreshing false}] (when (and (not fetching-recent-history?) (not all-fetched?)) diff --git a/translations/en.json b/translations/en.json index 78e60d463d..0bf4407025 100644 --- a/translations/en.json +++ b/translations/en.json @@ -957,6 +957,7 @@ "type": "Type", "transactions-history": "Transaction history", "transactions-history-empty": "No transactions in your history yet", + "transactions-history-loading": "Loading transaction history. This might take a while.", "transactions-sign": "Sign", "tribute-required-by-multiaccount": "{{multiaccount-name}} requires SNT to start a chat.", "tribute-state-paid": "Tribute paid",