import QtQuick 2.13 import SortFilterProxyModel 0.2 import utils 1.0 import shared.status 1.0 import shared.panels 1.0 import StatusQ.Core.Theme 0.1 import StatusQ.Core 0.1 import StatusQ.Components 0.1 import "../../stores" import "../../controls" import "../../popups" Column { id: root property WalletStore walletStore signal goToNetworksView() signal goToAccountView(var account) signal goToDappPermissionsView() Component.onCompleted: { // TODO remove this call and handle it from the backend // once the profile is refactored and the navigation is driven from the backend root.walletStore.loadDapps() } spacing: 8 Separator {} StatusListItem { title: qsTr("DApp Permissions") height: 64 width: parent.width onClicked: goToDappPermissionsView() label: qsTr("%n DApp(s) connected", "", root.walletStore.dappList.count) components: [ StatusIcon { icon: "next" color: Theme.palette.baseColor1 } ] } Separator {} StatusListItem { objectName: "networksItem" title: qsTr("Networks") height: 64 width: parent.width onClicked: goToNetworksView() components: [ StatusIcon { icon: "next" color: Theme.palette.baseColor1 } ] } Separator {} Item { width: parent.width height: 8 } Column { width: parent.width spacing: 24 Repeater { objectName: "generatedAccounts" model: walletStore.originModel delegate: WalletKeyPairDelegate { width: parent.width chainShortNames: walletStore.getAllNetworksSupportedPrefix() userProfilePublicKey: walletStore.userProfilePublicKey onGoToAccountView: root.goToAccountView(account) } } } }