2020-11-27 12:21:15 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-20 12:21:23 +02:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
2021-10-05 22:50:22 +02:00
|
|
|
import "../stores"
|
2020-11-27 12:21:15 -04:00
|
|
|
|
2021-10-14 13:33:34 +02:00
|
|
|
// TODO: replace with StatusModal
|
2020-11-27 12:21:15 -04:00
|
|
|
ModalPopup {
|
|
|
|
id: signPhrasePopup
|
2021-10-05 22:50:22 +02:00
|
|
|
|
|
|
|
signal remindLaterClicked()
|
|
|
|
signal acceptClicked()
|
|
|
|
|
2022-04-04 13:26:30 +02:00
|
|
|
title: qsTr("Signing phrase")
|
2020-11-27 12:21:15 -04:00
|
|
|
height: 390
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
|
|
|
|
Column {
|
2021-03-25 10:34:05 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2020-11-27 12:21:15 -04:00
|
|
|
|
|
|
|
StyledText {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("This is your signing phrase")
|
2020-11-27 12:21:15 -04:00
|
|
|
font.pixelSize: 17
|
|
|
|
font.weight: Font.Bold
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
height: Style.current.padding * 3
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("You should see these 3 words before signing each transaction")
|
2020-11-27 12:21:15 -04:00
|
|
|
font.pixelSize: 15
|
|
|
|
width: 330
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
height: Style.current.padding * 4
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: Style.current.inputBackground
|
|
|
|
height: 44
|
2021-03-25 10:34:05 +01:00
|
|
|
width: parent.width
|
2020-11-27 12:21:15 -04:00
|
|
|
StyledText {
|
|
|
|
id: signingPhrase
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.pixelSize: 15
|
2021-10-05 22:50:22 +02:00
|
|
|
text: RootStore.signingPhrase
|
2020-11-27 12:21:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
height: 30
|
|
|
|
width: parent.width
|
|
|
|
SVGImage {
|
|
|
|
width: 13.33
|
|
|
|
height: 13.33
|
|
|
|
sourceSize.height: height * 2
|
|
|
|
sourceSize.width: width * 2
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2021-09-28 18:04:06 +03:00
|
|
|
source: Style.svg("exclamation_outline")
|
2020-11-27 12:21:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("If you see a different combination, cancel the transaction and sign out")
|
2020-11-27 12:21:15 -04:00
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2021-03-25 10:34:05 +01:00
|
|
|
width: parent.width
|
2020-11-27 12:21:15 -04:00
|
|
|
font.pixelSize: 13
|
|
|
|
height: 18
|
|
|
|
color: Style.current.danger
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: Item {
|
2021-01-13 14:15:52 -05:00
|
|
|
width: parent.width
|
|
|
|
height: btnRemindLater.height
|
2022-02-09 10:43:23 +01:00
|
|
|
|
2021-10-20 12:21:23 +02:00
|
|
|
StatusFlatButton {
|
2022-07-29 18:51:34 -04:00
|
|
|
objectName: "signPhraseModalOkButton"
|
2020-11-27 12:21:15 -04:00
|
|
|
anchors.right: btnRemindLater.left
|
|
|
|
anchors.rightMargin: Style.current.padding
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("Ok, got it")
|
2020-11-27 12:21:15 -04:00
|
|
|
onClicked: {
|
2021-10-05 22:50:22 +02:00
|
|
|
acceptClicked()
|
|
|
|
close()
|
2020-11-27 12:21:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
id: btnRemindLater
|
|
|
|
anchors.right: parent.right
|
2022-04-04 13:26:30 +02:00
|
|
|
text: qsTr("Remind me later")
|
2020-11-27 12:21:15 -04:00
|
|
|
onClicked: {
|
2021-10-05 22:50:22 +02:00
|
|
|
remindLaterClicked()
|
|
|
|
close()
|
2020-11-27 12:21:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-07 12:28:49 -04:00
|
|
|
}
|