2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
2020-06-23 14:51:10 -04:00
|
|
|
import QtQuick.Controls 2.13
|
2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
|
2021-10-05 22:50:22 +02:00
|
|
|
import utils 1.0
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared.controls 1.0
|
2021-10-14 15:39:12 +02:00
|
|
|
|
2021-10-05 22:50:22 +02:00
|
|
|
import "popups"
|
|
|
|
import "panels"
|
|
|
|
import "views"
|
|
|
|
import "stores"
|
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
Item {
|
|
|
|
id: walletView
|
|
|
|
|
2020-11-27 12:21:15 -04:00
|
|
|
property bool hideSignPhraseModal: false
|
|
|
|
|
|
|
|
function showSigningPhrasePopup(){
|
2021-10-20 11:50:50 +02:00
|
|
|
if(!hideSignPhraseModal && !localAccountSensitiveSettings.hideSignPhraseModal){
|
2020-11-27 12:21:15 -04:00
|
|
|
signPhrasePopup.open();
|
|
|
|
}
|
|
|
|
}
|
2021-04-20 14:52:09 -04:00
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
SignPhraseModal {
|
|
|
|
id: signPhrasePopup
|
2021-10-05 22:50:22 +02:00
|
|
|
onRemindLaterClicked: hideSignPhraseModal = true
|
2021-10-20 11:50:50 +02:00
|
|
|
onAcceptClicked: localAccountSensitiveSettings.hideSignPhraseModal = true
|
2021-04-20 14:52:09 -04:00
|
|
|
}
|
2020-11-27 13:32:48 -04:00
|
|
|
|
2021-09-20 14:06:14 +02:00
|
|
|
SeedPhraseBackupWarning {
|
|
|
|
id: seedPhraseWarning
|
|
|
|
width: parent.width
|
|
|
|
anchors.top: parent.top
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
StatusAppTwoPanelLayout {
|
2021-09-20 14:06:14 +02:00
|
|
|
anchors.top: seedPhraseWarning.bottom
|
|
|
|
height: walletView.height - seedPhraseWarning.height
|
|
|
|
width: walletView.width
|
2020-05-14 12:16:01 -04:00
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
Component.onCompleted: {
|
2021-10-14 10:04:15 +02:00
|
|
|
// Read in RootStore
|
|
|
|
// if(RootStore.firstTimeLogin){
|
|
|
|
// RootStore.firstTimeLogin = false
|
|
|
|
// RootStore.setInitialRange()
|
|
|
|
// }
|
2020-05-27 16:50:39 -04:00
|
|
|
}
|
2020-05-14 12:16:01 -04:00
|
|
|
|
2021-06-11 15:57:43 +02:00
|
|
|
Timer {
|
|
|
|
id: recentHistoryTimer
|
|
|
|
interval: Constants.walletFetchRecentHistoryInterval
|
|
|
|
running: true
|
|
|
|
repeat: true
|
2021-10-05 22:50:22 +02:00
|
|
|
onTriggered: RootStore.checkRecentHistory()
|
2021-06-11 15:57:43 +02:00
|
|
|
}
|
|
|
|
|
2021-10-05 22:50:22 +02:00
|
|
|
leftPanel: LeftTabView {
|
2020-11-27 13:32:48 -04:00
|
|
|
id: leftTab
|
2021-06-11 15:57:43 +02:00
|
|
|
anchors.fill: parent
|
2021-10-05 22:50:22 +02:00
|
|
|
changeSelectedAccount: function(newIndex) {
|
|
|
|
if (newIndex > RootStore.accounts) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
selectedAccountIndex = newIndex
|
2021-10-21 10:22:05 +02:00
|
|
|
RootStore.switchAccount(newIndex)
|
2021-10-05 22:50:22 +02:00
|
|
|
walletContainer.currentTabIndex = 0;
|
|
|
|
}
|
2020-11-27 13:32:48 -04:00
|
|
|
}
|
2021-06-11 15:57:43 +02:00
|
|
|
|
2021-10-05 22:50:22 +02:00
|
|
|
rightPanel: RightTabView {
|
2020-11-27 13:32:48 -04:00
|
|
|
id: walletContainer
|
2021-10-05 22:50:22 +02:00
|
|
|
anchors.fill: parent
|
2020-05-27 16:50:39 -04:00
|
|
|
}
|
2020-05-14 12:16:01 -04:00
|
|
|
}
|
|
|
|
}
|