chore(wallet) lazy load TransactionDetailView
I was debugging a crash at login and found out that TransactionDetailView was being loaded even when it was not being used; my debugging code in `onComplete` was trying to access transaction data from nim which was not set. Updates #13663
This commit is contained in:
parent
72b03e69aa
commit
cd2b211f63
|
@ -73,6 +73,7 @@ RightTabBaseView {
|
||||||
readonly property var detailedCollectibleActivityController: RootStore.tmpActivityController0
|
readonly property var detailedCollectibleActivityController: RootStore.tmpActivityController0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StackLayout.currentIndex === 0
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
|
@ -268,27 +269,30 @@ RightTabBaseView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionDetailView {
|
Loader {
|
||||||
id: transactionDetailView
|
active: stack.currentIndex === 3
|
||||||
controller: RootStore.activityDetailsController
|
|
||||||
onVisibleChanged: {
|
sourceComponent: TransactionDetailView {
|
||||||
if (visible) {
|
controller: RootStore.activityDetailsController
|
||||||
if (!!transaction) {
|
onVisibleChanged: {
|
||||||
RootStore.addressWasShown(transaction.sender)
|
if (visible) {
|
||||||
if (transaction.sender !== transaction.recipient) {
|
if (!!transaction) {
|
||||||
RootStore.addressWasShown(transaction.recipient)
|
RootStore.addressWasShown(transaction.sender)
|
||||||
|
if (transaction.sender !== transaction.recipient) {
|
||||||
|
RootStore.addressWasShown(transaction.recipient)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
controller.resetActivityEntry()
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
controller.resetActivityEntry()
|
|
||||||
}
|
}
|
||||||
|
showAllAccounts: RootStore.showAllAccounts
|
||||||
|
communitiesStore: root.communitiesStore
|
||||||
|
sendModal: root.sendModal
|
||||||
|
contactsStore: root.contactsStore
|
||||||
|
networkConnectionStore: root.networkConnectionStore
|
||||||
|
visible: (stack.currentIndex === 3)
|
||||||
}
|
}
|
||||||
showAllAccounts: RootStore.showAllAccounts
|
|
||||||
communitiesStore: root.communitiesStore
|
|
||||||
sendModal: root.sendModal
|
|
||||||
contactsStore: root.contactsStore
|
|
||||||
networkConnectionStore: root.networkConnectionStore
|
|
||||||
visible: (stack.currentIndex === 3)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue