fix(dekstop/wallet) wrong account color displayed

In receive modal the account color was not corresponding to
the actual account color

* Updated StatusAccountSelector to use accounts from
  new backend
* Updated WalletHeader to use currentAccount from new
  backend

Closes #4071
This commit is contained in:
Alexandra Betouni 2021-11-11 19:25:54 +02:00
parent 663fea0272
commit a57fb330bd
3 changed files with 3 additions and 6 deletions

View File

@ -10,6 +10,7 @@ import shared.popups 1.0
import shared.status 1.0
import "../popups"
import "../controls"
import "../stores"
Item {
id: walletHeader
@ -78,7 +79,7 @@ Item {
onClosed: {
destroy();
}
selectedAccount: RootStore.leggacyCurrentAccount
selectedAccount: RootStore.currentAccount
}
}

View File

@ -47,7 +47,7 @@ ModalPopup {
id: accountSelector
label: ""
showAccountDetails: false
accounts: RootStore.leggacyAccounts
accounts: RootStore.accounts
currency: RootStore.currentCurrency
anchors.top: qrCodeBox.bottom
anchors.topMargin: Style.current.padding

View File

@ -5,10 +5,6 @@ import QtQuick 2.13
QtObject {
id: root
// TODO: Received modal is not yet migrated
property var leggacyAccounts: walletModel.accountsView.accounts
property var leggacyCurrentAccount: walletModel.accountsView.currentAccount
property var currentAccount: walletSectionCurrent
property var accounts: walletSectionAccounts.model