refactor(@desktop/wallet): Connect list account and qml
This commit is contained in:
parent
4bbf19c470
commit
4bc61134c4
|
@ -1,7 +1,8 @@
|
|||
import sequtils, sugar
|
||||
import NimQml, sequtils, sugar
|
||||
import eventemitter
|
||||
|
||||
import ./io_interface, ./view, ./item, ./controller
|
||||
import ../../../../core/global_singleton
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
|
||||
export io_interface
|
||||
|
@ -29,6 +30,8 @@ method delete*[T](self: Module[T]) =
|
|||
self.controller.delete
|
||||
|
||||
method load*[T](self: Module[T]) =
|
||||
singletonInstance.engine.setRootContextProperty("walletSectionAccounts", newQVariant(self.view))
|
||||
|
||||
let walletAccounts = self.controller.getWalletAccounts()
|
||||
|
||||
self.view.setItems(
|
||||
|
|
|
@ -6,7 +6,7 @@ QtObject {
|
|||
id: root
|
||||
|
||||
property var currentAccount: walletModel.accountsView.currentAccount
|
||||
property var accounts: walletModel.accountsView.accounts
|
||||
property var accounts: walletSectionAccounts.model
|
||||
|
||||
property string defaultCurrency: walletModel.balanceView.defaultCurrency
|
||||
property string totalFiatBalance: walletModel.balanceView.totalFiatBalance
|
||||
|
|
Loading…
Reference in New Issue