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,8 +269,10 @@ RightTabBaseView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionDetailView {
|
Loader {
|
||||||
id: transactionDetailView
|
active: stack.currentIndex === 3
|
||||||
|
|
||||||
|
sourceComponent: TransactionDetailView {
|
||||||
controller: RootStore.activityDetailsController
|
controller: RootStore.activityDetailsController
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
@ -291,4 +294,5 @@ RightTabBaseView {
|
||||||
visible: (stack.currentIndex === 3)
|
visible: (stack.currentIndex === 3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue