2022-02-11 09:44:49 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
|
2022-03-01 10:08:15 +00:00
|
|
|
import utils 1.0
|
2022-02-11 09:44:49 +00:00
|
|
|
import shared.status 1.0
|
2022-03-01 10:08:15 +00:00
|
|
|
import shared.panels 1.0
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Core 0.1
|
2022-03-15 14:59:58 +00:00
|
|
|
import StatusQ.Components 0.1
|
2022-02-11 09:44:49 +00:00
|
|
|
|
|
|
|
import "../../stores"
|
2022-03-01 14:40:53 +00:00
|
|
|
import "../../controls"
|
2022-03-02 14:24:39 +00:00
|
|
|
import "../../popups"
|
2022-02-11 09:44:49 +00:00
|
|
|
|
|
|
|
Column {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property WalletStore walletStore
|
|
|
|
|
|
|
|
signal goToNetworksView()
|
2022-03-07 09:33:38 +00:00
|
|
|
signal goToAccountView(address: string)
|
2022-03-04 09:09:58 +00:00
|
|
|
signal goToDappPermissionsView()
|
2022-03-01 10:08:15 +00:00
|
|
|
|
2022-05-23 15:08:23 +00:00
|
|
|
// Temporary commented, we need to bring it back after MVP
|
|
|
|
// https://github.com/status-im/status-desktop/issues/5856
|
|
|
|
|
|
|
|
// StatusListItem {
|
|
|
|
// title: qsTr("Manage Assets & List")
|
|
|
|
// height: 64
|
|
|
|
// width: parent.width
|
|
|
|
// onClicked: Global.openPopup(tokenSettingsModalComponent)
|
|
|
|
// components: [
|
|
|
|
// StatusIcon {
|
|
|
|
// icon: "chevron-down"
|
|
|
|
// rotation: 270
|
|
|
|
// color: Theme.palette.baseColor1
|
|
|
|
// }
|
|
|
|
// ]
|
|
|
|
// }
|
2022-03-02 14:24:39 +00:00
|
|
|
|
|
|
|
Component {
|
|
|
|
id: tokenSettingsModalComponent
|
|
|
|
TokenSettingsModal {
|
|
|
|
walletStore: root.walletStore
|
|
|
|
onClosed: {
|
|
|
|
destroy();
|
|
|
|
}
|
|
|
|
}
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Separator {
|
|
|
|
height: 17
|
|
|
|
}
|
|
|
|
|
2022-03-15 14:59:58 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: qsTr("DApp Permissions")
|
2022-03-01 10:08:15 +00:00
|
|
|
height: 64
|
2022-03-15 14:59:58 +00:00
|
|
|
width: parent.width
|
2022-03-04 09:09:58 +00:00
|
|
|
onClicked: goToDappPermissionsView()
|
2022-03-15 14:59:58 +00:00
|
|
|
components: [
|
|
|
|
StatusIcon {
|
|
|
|
icon: "chevron-down"
|
|
|
|
rotation: 270
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
]
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Separator {
|
|
|
|
height: 17
|
|
|
|
}
|
|
|
|
|
2022-03-15 14:59:58 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: qsTr("Networks")
|
2022-03-01 10:08:15 +00:00
|
|
|
height: 64
|
2022-03-15 14:59:58 +00:00
|
|
|
width: parent.width
|
2022-02-11 09:44:49 +00:00
|
|
|
onClicked: goToNetworksView()
|
2022-03-15 14:59:58 +00:00
|
|
|
components: [
|
|
|
|
StatusIcon {
|
|
|
|
icon: "chevron-down"
|
|
|
|
rotation: 270
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
]
|
2022-02-11 09:44:49 +00:00
|
|
|
}
|
2022-03-01 10:08:15 +00:00
|
|
|
|
|
|
|
Separator {
|
|
|
|
height: 17
|
|
|
|
}
|
|
|
|
|
2022-03-15 14:59:58 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
height: 64
|
|
|
|
subTitle: qsTr("Accounts")
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusSectionHeadline {
|
|
|
|
text: qsTr("Generated from Your Seed Phrase")
|
2022-03-15 14:59:58 +00:00
|
|
|
leftPadding: Style.current.padding
|
|
|
|
topPadding: Style.current.halfPadding
|
|
|
|
bottomPadding: Style.current.halfPadding/2
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
|
|
|
|
2022-03-01 14:40:53 +00:00
|
|
|
Repeater {
|
|
|
|
model: walletStore.generatedAccounts
|
|
|
|
delegate: WalletAccountDelegate {
|
|
|
|
account: model
|
2022-03-07 09:33:38 +00:00
|
|
|
onGoToAccountView: {
|
|
|
|
root.goToAccountView(model.address)
|
|
|
|
}
|
2022-03-01 14:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-01 10:08:15 +00:00
|
|
|
StatusSectionHeadline {
|
|
|
|
text: qsTr("Imported")
|
2022-03-15 14:59:58 +00:00
|
|
|
leftPadding: Style.current.padding
|
|
|
|
topPadding: Style.current.halfPadding
|
|
|
|
bottomPadding: Style.current.halfPadding/2
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
|
|
|
|
2022-03-01 14:40:53 +00:00
|
|
|
Repeater {
|
|
|
|
model: walletStore.importedAccounts
|
|
|
|
delegate: WalletAccountDelegate {
|
|
|
|
account: model
|
2022-03-07 09:33:38 +00:00
|
|
|
onGoToAccountView: {
|
|
|
|
root.goToAccountView(model.address)
|
|
|
|
}
|
2022-03-01 14:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-01 10:08:15 +00:00
|
|
|
StatusSectionHeadline {
|
|
|
|
text: qsTr("Watch-Only")
|
2022-03-15 14:59:58 +00:00
|
|
|
leftPadding: Style.current.padding
|
|
|
|
topPadding: Style.current.halfPadding
|
|
|
|
bottomPadding: Style.current.halfPadding/2
|
2022-03-01 10:08:15 +00:00
|
|
|
}
|
2022-03-01 14:40:53 +00:00
|
|
|
|
|
|
|
Repeater {
|
|
|
|
model: walletStore.watchOnlyAccounts
|
|
|
|
delegate: WalletAccountDelegate {
|
|
|
|
account: model
|
2022-03-07 09:33:38 +00:00
|
|
|
onGoToAccountView: {
|
|
|
|
root.goToAccountView(model.address)
|
|
|
|
}
|
2022-03-01 14:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-15 14:59:58 +00:00
|
|
|
|
2022-03-16 12:54:00 +00:00
|
|
|
// Adding padding to the end so that when the view is scrolled to the end there is some gap left
|
2022-03-15 14:59:58 +00:00
|
|
|
Item {
|
|
|
|
height: Style.current.bigPadding
|
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
}
|