2020-10-08 11:26:16 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Dialogs 1.3
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-20 12:23:58 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1 as StatusQControls
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
|
|
|
import shared.status 1.0
|
2021-10-12 18:26:02 +00:00
|
|
|
import "../stores"
|
2020-10-08 11:26:16 +00:00
|
|
|
|
2021-10-20 22:47:23 +00:00
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-10-08 11:26:16 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Your keys have been successfully recovered"
|
|
|
|
title: qsTrId("your-keys-have-been-successfully-recovered")
|
2021-01-06 13:11:26 +00:00
|
|
|
height: 400
|
2020-10-08 11:26:16 +00:00
|
|
|
|
|
|
|
signal buttonClicked()
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: info
|
|
|
|
anchors.top: parent.top
|
2021-01-06 13:11:26 +00:00
|
|
|
anchors.topMargin: Style.current.bigPadding
|
2020-10-08 11:26:16 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.leftMargin: Style.current.bigPadding
|
|
|
|
anchors.rightMargin: Style.current.bigPadding
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "You will have to create a new code or password to re-encrypt your keys"
|
|
|
|
text: qsTrId("recovery-success-text")
|
2020-10-08 11:26:16 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Style.current.secondaryText
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
}
|
|
|
|
|
2021-10-20 22:47:23 +00:00
|
|
|
StatusSmartIdenticon {
|
2020-10-08 11:26:16 +00:00
|
|
|
id: identicon
|
2021-10-14 08:04:15 +00:00
|
|
|
source: OnboardingStore.onBoardingModul.importedAccountIdenticon
|
2020-10-08 11:26:16 +00:00
|
|
|
anchors.top: info.bottom
|
|
|
|
anchors.topMargin: Style.current.bigPadding
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2021-10-20 22:47:23 +00:00
|
|
|
image.source: OnboardingStore.currentAccount.identicon
|
|
|
|
image.width: 60
|
|
|
|
image.height: 60
|
2020-10-08 11:26:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: username
|
|
|
|
anchors.top: identicon.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.horizontalCenter: identicon.horizontalCenter
|
2021-10-14 08:04:15 +00:00
|
|
|
text: OnboardingStore.onBoardingModul.importedAccountAlias
|
2020-10-08 11:26:16 +00:00
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
Address {
|
|
|
|
anchors.top: username.bottom
|
|
|
|
anchors.topMargin: Style.current.halfPadding
|
|
|
|
anchors.horizontalCenter: username.horizontalCenter
|
2021-10-14 08:04:15 +00:00
|
|
|
text: OnboardingStore.onBoardingModul.importedAccountAddress
|
2020-10-08 11:26:16 +00:00
|
|
|
width: 120
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: Item {
|
2021-01-13 19:15:52 +00:00
|
|
|
width: parent.width
|
|
|
|
height: reencryptBtn.height
|
2020-10-08 11:26:16 +00:00
|
|
|
|
2021-10-20 12:23:58 +00:00
|
|
|
StatusQControls.StatusButton {
|
2021-01-13 19:15:52 +00:00
|
|
|
id: reencryptBtn
|
2020-10-08 11:26:16 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
|
|
|
anchors.right: parent.right
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Re-encrypt your keys"
|
|
|
|
text: qsTrId("re-encrypt-key")
|
2020-10-08 11:26:16 +00:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
popup.buttonClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|