fix(@wallet): no tx found

fixes #9320
This commit is contained in:
Anthony Laibe 2023-01-31 11:35:41 +01:00 committed by Anthony Laibe
parent b037d724ed
commit 5cc6ad194f
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ proc init*(self: Controller) =
self.events.on(SIGNAL_HISTORY_READY) do (e:Args):
let args = HistoryArgs(e)
self.delegate.setHistoryFetchState(args.addresses, isFetching = false)
self.delegate.setHistoryFetchState(args.addresses, isFetching = true)
self.events.on(SIGNAL_HISTORY_NON_ARCHIVAL_NODE) do (e:Args):
let accounts = self.getWalletAccounts()
@ -65,6 +65,7 @@ proc init*(self: Controller) =
self.events.on(SIGNAL_TRANSACTIONS_LOADED) do(e:Args):
let args = TransactionsLoadedArgs(e)
self.delegate.setHistoryFetchState(@[args.address], isFetching = false)
self.delegate.setTrxHistoryResult(args.transactions, args.address, args.wasFetchMore)
self.events.on(SIGNAL_TRANSACTION_SENT) do(e:Args):

View File

@ -60,7 +60,7 @@ ColumnLayout {
StyledText {
id: noTxs
visible: transactionListRoot.count === 0
visible: !isLoading && transactionListRoot.count === 0
text: qsTr("No transactions found")
font.pixelSize: Style.current.primaryTextFontSize
}