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