fix(@desktop/wallet): Handle empty activity list exception (#11399)
fixes #11354 fixes #11381
This commit is contained in:
parent
04a63ce07d
commit
ab487d40a5
|
@ -174,9 +174,12 @@ QtObject:
|
|||
if res.errorCode != ErrorCodeSuccess:
|
||||
error "error fetching activity entries: ", res.errorCode
|
||||
return
|
||||
|
||||
let entries = self.backendToPresentation(res.activities)
|
||||
self.model.setEntries(entries, res.offset, res.hasMore)
|
||||
|
||||
try:
|
||||
let entries = self.backendToPresentation(res.activities)
|
||||
self.model.setEntries(entries, res.offset, res.hasMore)
|
||||
except Exception as e:
|
||||
error "Error converting activity entries: ", e.msg
|
||||
|
||||
proc updateFilter*(self: Controller) {.slot.} =
|
||||
self.status.setLoadingData(true)
|
||||
|
|
|
@ -23,12 +23,19 @@ Item {
|
|||
property var sendModalPopup
|
||||
property var networkConnectionStore
|
||||
|
||||
onVisibleChanged: resetView()
|
||||
|
||||
function showSigningPhrasePopup(){
|
||||
if(!hideSignPhraseModal && !RootStore.hideSignPhraseModal){
|
||||
signPhrasePopup.open();
|
||||
}
|
||||
}
|
||||
|
||||
function resetView() {
|
||||
if (!!rightPanelStackView.currentItem.resetView)
|
||||
rightPanelStackView.currentItem.resetView()
|
||||
}
|
||||
|
||||
SignPhraseModal {
|
||||
id: signPhrasePopup
|
||||
onRemindLaterClicked: hideSignPhraseModal = true
|
||||
|
@ -89,13 +96,11 @@ Item {
|
|||
anchors.fill: parent
|
||||
changeSelectedAccount: function(address) {
|
||||
RootStore.setFilterAddress(address)
|
||||
if (!!rightPanelStackView.currentItem.resetView)
|
||||
rightPanelStackView.currentItem.resetView()
|
||||
root.resetView()
|
||||
}
|
||||
selectAllAccounts: function() {
|
||||
RootStore.setFillterAllAddresses()
|
||||
if (!!rightPanelStackView.currentItem.resetView)
|
||||
rightPanelStackView.currentItem.resetView()
|
||||
root.resetView()
|
||||
}
|
||||
onShowSavedAddressesChanged: {
|
||||
if(showSavedAddresses)
|
||||
|
|
Loading…
Reference in New Issue