aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateWallet3.qml
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-08-23 18:09:22 +0200
committerselsta <selsta@sent.at>2023-02-12 23:25:49 +0100
commit198dfb338cb26177763b5fff835a3740b0a4f0c5 (patch)
tree8e5608e824fde049ef9c0a5a37fd44c87dc6611a /wizard/WizardCreateWallet3.qml
parentb7ba9437d8cca6df4ecff7f5ae38a53cac5e26b2 (diff)
downloadmonzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.tar.gz
monzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.tar.xz
monzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.zip
wizard: redesign seed page
- move mnemonic seed - restore height into a separate page - pdf template - seed verification - responsive UI - accessibility
Diffstat (limited to 'wizard/WizardCreateWallet3.qml')
-rw-r--r--wizard/WizardCreateWallet3.qml32
1 files changed, 20 insertions, 12 deletions
diff --git a/wizard/WizardCreateWallet3.qml b/wizard/WizardCreateWallet3.qml
index 8bc3e048..49b139c0 100644
--- a/wizard/WizardCreateWallet3.qml
+++ b/wizard/WizardCreateWallet3.qml
@@ -38,6 +38,8 @@ Rectangle {
color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet3"
+ property alias pwField: passwordFields.password
+ property alias pwConfirmField: passwordFields.passwordConfirm
ColumnLayout {
id: pageRoot
@@ -53,26 +55,32 @@ Rectangle {
Layout.topMargin: wizardController.wizardSubViewTopMargin
Layout.maximumWidth: wizardController.wizardSubViewWidth
Layout.alignment: Qt.AlignHCenter
- spacing: 20
+ spacing: 0
- WizardHeader {
- title: qsTr("Daemon settings") + translationManager.emptyString
- subtitle: qsTr("To be able to communicate with the Monero network your wallet needs to be connected to a Monero node. For best privacy it's recommended to run your own node.") + translationManager.emptyString
- }
-
- WizardDaemonSettings {
- id: daemonSettings
+ WizardAskPassword {
+ id: passwordFields
}
WizardNav {
- progressSteps: 4
+ progressSteps: appWindow.walletMode <= 1 ? 4 : 5
progress: 2
+ btnNext.enabled: passwordFields.calcStrengthAndVerify();
onPrevClicked: {
- wizardStateView.state = "wizardCreateWallet2";
+ if(wizardController.walletOptionsIsRecoveringFromDevice){
+ wizardStateView.state = "wizardCreateDevice1";
+ } else {
+ wizardStateView.state = "wizardCreateWallet2";
+ wizardStateView.wizardCreateWallet2View.pageRoot.forceActiveFocus();
+ }
}
onNextClicked: {
- daemonSettings.save();
- wizardStateView.state = "wizardCreateWallet4";
+ wizardController.walletOptionsPassword = passwordFields.password;
+
+ if (appWindow.walletMode < 2) {
+ wizardStateView.state = "wizardCreateWallet5";
+ } else {
+ wizardStateView.state = "wizardCreateWallet4";
+ }
}
}
}