aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--translations/monero-core_de.ts36
-rw-r--r--translations/monero-core_en.ts36
-rw-r--r--translations/monero-core_it.ts36
-rw-r--r--translations/monero-core_pl.ts36
-rw-r--r--translations/monero-core_ru.ts36
-rw-r--r--translations/monero-core_zh.ts36
-rw-r--r--wizard/WizardCreateWallet.qml9
-rw-r--r--wizard/WizardFinish.qml4
-rw-r--r--wizard/WizardMain.qml57
-rw-r--r--wizard/WizardPassword.qml22
-rw-r--r--wizard/WizardRecoveryWallet.qml12
11 files changed, 179 insertions, 141 deletions
diff --git a/translations/monero-core_de.ts b/translations/monero-core_de.ts
index ea08d710..24e76b60 100644
--- a/translations/monero-core_de.ts
+++ b/translations/monero-core_de.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/translations/monero-core_en.ts b/translations/monero-core_en.ts
index dca4c577..6e8d5bcc 100644
--- a/translations/monero-core_en.ts
+++ b/translations/monero-core_en.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/translations/monero-core_it.ts b/translations/monero-core_it.ts
index 2c9c4b78..403d3859 100644
--- a/translations/monero-core_it.ts
+++ b/translations/monero-core_it.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/translations/monero-core_pl.ts b/translations/monero-core_pl.ts
index a3496ddb..bb152986 100644
--- a/translations/monero-core_pl.ts
+++ b/translations/monero-core_pl.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/translations/monero-core_ru.ts b/translations/monero-core_ru.ts
index 29bf9b7f..5ca9c499 100644
--- a/translations/monero-core_ru.ts
+++ b/translations/monero-core_ru.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/translations/monero-core_zh.ts b/translations/monero-core_zh.ts
index e5e60dab..14f60021 100644
--- a/translations/monero-core_zh.ts
+++ b/translations/monero-core_zh.ts
@@ -542,12 +542,12 @@
<context>
<name>WizardCreateWallet</name>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="81"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardCreateWallet.qml" line="82"/>
+ <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation>
</message>
@@ -628,7 +628,7 @@
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardFinish.qml" line="103"/>
+ <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>You’re all setup!</source>
<translation type="unfinished"></translation>
</message>
@@ -636,17 +636,7 @@
<context>
<name>WizardMain</name>
<message>
- <location filename="../wizard/WizardMain.qml" line="85"/>
- <source>Now that your wallet has been created, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="87"/>
- <source>Now that your wallet has been restored, please set a password for the wallet</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <location filename="../wizard/WizardMain.qml" line="309"/>
+ <location filename="../wizard/WizardMain.qml" line="308"/>
<source>USE MONERO</source>
<translation type="unfinished"></translation>
</message>
@@ -708,7 +698,17 @@
<context>
<name>WizardPassword</name>
<message>
- <location filename="../wizard/WizardPassword.qml" line="121"/>
+ <location filename="../wizard/WizardPassword.qml" line="51"/>
+ <source>Now that your wallet has been created, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="53"/>
+ <source>Now that your wallet has been restored, please set a password for the wallet</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation>
@@ -717,17 +717,17 @@
<context>
<name>WizardRecoveryWallet</name>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="69"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="70"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../wizard/WizardRecoveryWallet.qml" line="71"/>
+ <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation>
</message>
diff --git a/wizard/WizardCreateWallet.qml b/wizard/WizardCreateWallet.qml
index 2181a359..771a13ec 100644
--- a/wizard/WizardCreateWallet.qml
+++ b/wizard/WizardCreateWallet.qml
@@ -42,6 +42,10 @@ Item {
//! function called each time we display this page
+ function onPageOpened(settingsOblect) {
+ checkNextButton()
+ }
+
function onPageClosed(settingsObject) {
settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = uiItem.wordsTexttext
@@ -49,6 +53,11 @@ Item {
return true;
}
+ function checkNextButton() {
+ var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" ");
+ wizard.nextButton.enabled = wordsArray.length === 25;
+ }
+
//! function called each time we hide this page
//
diff --git a/wizard/WizardFinish.qml b/wizard/WizardFinish.qml
index 7c9c89e7..431b5a89 100644
--- a/wizard/WizardFinish.qml
+++ b/wizard/WizardFinish.qml
@@ -54,6 +54,10 @@ Item {
+ buildSettingsString();
}
+ function onPageOpened(settings) {
+ updateSettingsSummary();
+ wizard.nextButton.visible = false;
+ }
Row {
diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml
index 1103c2ff..f0556efc 100644
--- a/wizard/WizardMain.qml
+++ b/wizard/WizardMain.qml
@@ -58,7 +58,7 @@ Rectangle {
};
}
- print ("switchpage: start: currentPage: ", currentPage);
+ print ("switchpage: currentPage: ", currentPage);
if (currentPage > 0 || currentPage < pages.length - 1) {
pages[currentPage].opacity = 0
@@ -66,40 +66,35 @@ Rectangle {
currentPage += step_value
pages[currentPage].opacity = 1;
+ var nextButtonVisible = pages[currentPage] !== optionsPage;
+ nextButton.visible = nextButtonVisible;
+
if (next && typeof pages[currentPage].onPageOpened !== 'undefined') {
pages[currentPage].onPageOpened(settings)
}
- handlePageChanged();
+
+
+
}
}
+ // TODO: remove it
function handlePageChanged() {
- var nextButtonVisible = pages[currentPage] !== optionsPage;
- nextButton.visible = nextButtonVisible;
- print ("next button visible: " + nextButtonVisible);
- switch (pages[currentPage]) {
- case passwordPage:
- // disable "next" button until passwords match
- nextButton.enabled = passwordPage.passwordValid;
- if (currentPath === "create_wallet") {
- passwordPage.titleText = qsTr("Now that your wallet has been created, please set a password for the wallet") + translationManager.emptyString
- } else {
- passwordPage.titleText = qsTr("Now that your wallet has been restored, please set a password for the wallet") + translationManager.emptyString
- }
- break;
- case finishPage:
- // display settings summary
- finishPage.updateSettingsSummary();
- nextButton.visible = false;
- break;
- case recoveryWalletPage:
- // TODO: disable "next button" until 25 words private key entered
- nextButton.enabled = false
- break
- default:
- nextButton.enabled = true
- }
+// switch (pages[currentPage]) {
+//// case finishPage:
+//// // display settings summary
+//// finishPage.updateSettingsSummary();
+//// nextButton.visible = false;
+//// break;
+// case recoveryWalletPage:
+// // disable "next button" until 25 words private key entered
+// nextButton.enabled = false
+// break
+// default:
+// nextButton.enabled = true
+
+// }
}
@@ -111,7 +106,9 @@ Rectangle {
pages = paths[currentPath]
currentPage = pages.indexOf(createWalletPage)
createWalletPage.createWallet(settings)
- handlePageChanged()
+ wizard.nextButton.visible = true
+ createWalletPage.onPageOpened(settings);
+
}
@@ -122,7 +119,9 @@ Rectangle {
currentPath = "recovery_wallet"
pages = paths[currentPath]
currentPage = pages.indexOf(recoveryWalletPage)
- handlePageChanged()
+ wizard.nextButton.visible = true
+ recoveryWalletPage.onPageOpened(settings);
+
}
//! actually writes the wallet
diff --git a/wizard/WizardPassword.qml b/wizard/WizardPassword.qml
index 0e79d57c..8318a785 100644
--- a/wizard/WizardPassword.qml
+++ b/wizard/WizardPassword.qml
@@ -31,10 +31,10 @@ import "../components"
import "utils.js" as Utils
Item {
+
+ id: passwordPage
opacity: 0
visible: false
- property bool passwordValid : passwordItem.password != ''
- && passwordItem.password === retypePasswordItem.password
property alias titleText: titleText.text
Behavior on opacity {
@@ -43,6 +43,17 @@ Item {
onOpacityChanged: visible = opacity !== 0
+
+ function onPageOpened(settingsObject) {
+ wizard.nextButton.enabled = true
+
+ if (wizard.currentPath === "create_wallet") {
+ passwordPage.titleText = qsTr("Now that your wallet has been created, please set a password for the wallet") + translationManager.emptyString
+ } else {
+ passwordPage.titleText = qsTr("Now that your wallet has been restored, please set a password for the wallet") + translationManager.emptyString
+ }
+ }
+
function onPageClosed(settingsObject) {
// TODO: set password on the final page
// settingsObject.wallet.setPassword(passwordItem.password)
@@ -52,11 +63,14 @@ Item {
function handlePassword() {
// allow to forward step only if passwords match
+
wizard.nextButton.enabled = passwordItem.password === retypePasswordItem.password
+
// scorePassword returns value from 1..100
var strength = Utils.scorePassword(passwordItem.password)
// privacyLevel component uses 1..13 scale
privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength)
+
}
@@ -155,4 +169,8 @@ Item {
height: 62
onChanged: handlePassword()
}
+
+ Component.onCompleted: {
+ console.log
+ }
}
diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml
index 972ee6a1..2e6fe5f6 100644
--- a/wizard/WizardRecoveryWallet.qml
+++ b/wizard/WizardRecoveryWallet.qml
@@ -41,6 +41,15 @@ Item {
onOpacityChanged: visible = opacity !== 0
+ function onPageOpened(settingsObject) {
+ checkNextButton();
+ }
+
+ function checkNextButton() {
+ var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" ");
+ wizard.nextButton.enabled = wordsArray.length === 25;
+ }
+
function onPageClosed(settingsObject) {
settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = cleanWordsInput(uiItem.wordsTextItem.memoText)
@@ -74,8 +83,7 @@ Item {
wordsTextItem.memoTextReadOnly: false
wordsTextItem.memoText: ""
wordsTextItem.onMemoTextChanged: {
- var wordsArray = cleanWordsInput(wordsTextItem.memoText).split(" ");
- wizard.nextButton.enabled = wordsArray.length === 25
+ checkNextButton();
}
}
}