mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
59f604349c
refactor: wallet: connect current account refactor(@wallet): load collection and connect to store refactor(@wallet): add boilerplate for accounts creation/generation refactor(@wallet): watch account refactor(@wallet): Add account generation refactor(@wallet): display all accounts refactor(@wallet): switch account refactor(@desktop): update current currency refactor(@desktop/wallet): token action refactor(@desktop/wallet): Add update account refactor(@desktop/wallet): filter chat account from wallet refactor(@desktop/wallet): Update currency attribute refactor(@desktop/wallet): Fix display of various balances refactor(@dekstop/wallet): handle current account changed refactor(@wallet/desktop): add notify event on main section refactor(@desktop/wallet): Push events from service refactor(@desktop/wallet): handle all tokens event refactor(@desktop/wallet): refresh accounts on event refactor(@wallet/desktop): formatting of currency balances refactor(@desktop/wallet): load collectible refactor: refactor wallet transaction history to the new architecture update status-lib refactor: add back events for the transaction history refactor: support multiple accounts in the transaction history
79 lines
1.9 KiB
QML
79 lines
1.9 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
import utils 1.0
|
|
import shared.controls 1.0
|
|
|
|
import "popups"
|
|
import "panels"
|
|
import "views"
|
|
import "stores"
|
|
|
|
Item {
|
|
id: walletView
|
|
|
|
property bool hideSignPhraseModal: false
|
|
|
|
function showSigningPhrasePopup(){
|
|
if(!hideSignPhraseModal && !localAccountSensitiveSettings.hideSignPhraseModal){
|
|
signPhrasePopup.open();
|
|
}
|
|
}
|
|
|
|
SignPhraseModal {
|
|
id: signPhrasePopup
|
|
onRemindLaterClicked: hideSignPhraseModal = true
|
|
onAcceptClicked: localAccountSensitiveSettings.hideSignPhraseModal = true
|
|
}
|
|
|
|
SeedPhraseBackupWarning {
|
|
id: seedPhraseWarning
|
|
width: parent.width
|
|
anchors.top: parent.top
|
|
}
|
|
|
|
|
|
StatusAppTwoPanelLayout {
|
|
anchors.top: seedPhraseWarning.bottom
|
|
height: walletView.height - seedPhraseWarning.height
|
|
width: walletView.width
|
|
|
|
Component.onCompleted: {
|
|
// Read in RootStore
|
|
// if(RootStore.firstTimeLogin){
|
|
// RootStore.firstTimeLogin = false
|
|
// RootStore.setInitialRange()
|
|
// }
|
|
}
|
|
|
|
Timer {
|
|
id: recentHistoryTimer
|
|
interval: Constants.walletFetchRecentHistoryInterval
|
|
running: true
|
|
repeat: true
|
|
onTriggered: RootStore.checkRecentHistory()
|
|
}
|
|
|
|
leftPanel: LeftTabView {
|
|
id: leftTab
|
|
anchors.fill: parent
|
|
changeSelectedAccount: function(newIndex) {
|
|
if (newIndex > RootStore.accounts) {
|
|
return
|
|
}
|
|
selectedAccountIndex = newIndex
|
|
RootStore.switchAccount(newIndex)
|
|
walletContainer.currentTabIndex = 0;
|
|
}
|
|
}
|
|
|
|
rightPanel: RightTabView {
|
|
id: walletContainer
|
|
anchors.fill: parent
|
|
}
|
|
}
|
|
}
|