2021-08-31 12:06:13 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtGraphicalEffects 1.13
|
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-09-14 16:23:02 +00:00
|
|
|
import "../../Profile/Sections"
|
2021-08-31 12:06:13 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
2021-09-14 16:23:02 +00:00
|
|
|
property var store
|
2021-08-31 12:06:13 +00:00
|
|
|
|
|
|
|
Column {
|
|
|
|
anchors.top:parent.top
|
|
|
|
leftPadding: 20
|
|
|
|
rightPadding: 20
|
|
|
|
width: parent.width
|
|
|
|
spacing: 12
|
|
|
|
|
|
|
|
StatusExpandableItem {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 20
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// visible : (root.store.walletModelV2Inst.accountsView.currentAccount.walletType !== Constants.seedWalletType) &&
|
|
|
|
// (root.store.walletModelV2Inst.accountsView.currentAccount.walletType !== Constants.watchWalletType) &&
|
|
|
|
// (root.store.walletModelV2Inst.accountsView.currentAccount.walletType !== Constants.keyWalletType)
|
2021-08-31 12:06:13 +00:00
|
|
|
expandable: false
|
|
|
|
icon.name: "seed-phrase"
|
|
|
|
primaryText: qsTr("Back up seed phrase")
|
|
|
|
secondaryText: qsTr("Back up your seed phrase now to secure this account")
|
|
|
|
button.text: qsTr("Back up seed phrase")
|
2021-12-30 12:39:47 +00:00
|
|
|
// Not Refactored Yet (there is no wallet 2 is `base_bc`)
|
|
|
|
// button.enabled: !mnemonicModule.isBackedUp
|
|
|
|
button.onClicked: Global.openBackUpSeedPopup()
|
2021-08-31 12:06:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusExpandableItem {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 20
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// visible : root.store.walletModelV2Inst.accountsView.currentAccount.walletType !== Constants.watchWalletType
|
2021-08-31 12:06:13 +00:00
|
|
|
expandable: true
|
|
|
|
icon.name: "secret"
|
|
|
|
primaryText: qsTr("Account signing phrase")
|
|
|
|
secondaryText: qsTr("View your signing phrase and ensure that you never get scammed")
|
|
|
|
expandableComponent: showSigningPhraseExpandableRegion
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusExpandableItem {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 20
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// visible : (root.store.walletModelV2Inst.accountsView.currentAccount.walletType === Constants.keyWalletType) ||
|
|
|
|
// (root.store.walletModelV2Inst.accountsView.currentAccount.walletType === Constants.seedWalletType)
|
2021-08-31 12:06:13 +00:00
|
|
|
expandable: true
|
|
|
|
icon.name: "seed-phrase"
|
|
|
|
primaryText: qsTr("View private key")
|
|
|
|
secondaryText: qsTr("View your seed phrase and ensure it's stored in a safe place")
|
|
|
|
button.text: qsTr("View private key")
|
|
|
|
expandableComponent: notImplemented
|
|
|
|
button.onClicked: {
|
|
|
|
// To-do open enter password Modal
|
2021-09-14 16:23:02 +00:00
|
|
|
expanded = !expanded;
|
2021-08-31 12:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusExpandableItem {
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 20
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
|
|
|
|
expandable: true
|
|
|
|
icon.name: "security"
|
|
|
|
primaryText: qsTr("Security preferences")
|
|
|
|
secondaryText: qsTr("View & set security preferences for this wallet")
|
|
|
|
expandableComponent: notImplemented
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: notImplemented
|
|
|
|
Rectangle {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
width: 654
|
|
|
|
height: infoText.implicitHeight
|
|
|
|
color: Theme.palette.baseColor5
|
|
|
|
StatusBaseText {
|
|
|
|
id: infoText
|
|
|
|
anchors.centerIn: parent
|
|
|
|
color: Theme.palette.directColor4
|
|
|
|
font.pixelSize: 15
|
|
|
|
lineHeight: 22
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
font.weight: Font.Medium
|
|
|
|
text: qsTr("Not Implemented")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: showSigningPhraseExpandableRegion
|
|
|
|
Row {
|
|
|
|
spacing: 1
|
|
|
|
anchors.centerIn: parent
|
|
|
|
width: 654
|
|
|
|
Rectangle {
|
|
|
|
id: keyRect
|
|
|
|
color: Theme.palette.baseColor5
|
|
|
|
width: Math.min(keyText.implicitWidth, 200) + keyText.anchors.leftMargin + keyText.anchors.rightMargin
|
|
|
|
height: Math.max(keyText.implicitHeight, infoText.implicitHeight) + 42
|
|
|
|
StatusBaseText {
|
|
|
|
id: keyText
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 21
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 21
|
|
|
|
width: Math.min(implicitWidth, 200)
|
|
|
|
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
font.pixelSize: 15
|
|
|
|
lineHeight: 22
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
elide: Text.ElideRight
|
|
|
|
wrapMode: Text.Wrap
|
2021-12-13 14:24:21 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// text: root.store.walletModelV2Inst.settingsView.signingPhrase
|
2021-08-31 12:06:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Rectangle {
|
|
|
|
id: infoRect
|
|
|
|
color: Theme.palette.baseColor5
|
|
|
|
width: parent.width - keyRect.width
|
|
|
|
height: Math.max(keyText.implicitHeight, infoText.implicitHeight) + 42
|
|
|
|
StatusBaseText {
|
|
|
|
id: infoText
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 25
|
|
|
|
width: 366
|
|
|
|
|
|
|
|
color: Theme.palette.directColor4
|
|
|
|
font.pixelSize: 12
|
|
|
|
lineHeight: 16
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
elide: Text.ElideRight
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
text: qsTr("If you see something different, you should immediately sign out and reinstall Status")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|