aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateWallet.qml
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-21 13:56:17 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-21 13:56:17 +0300
commite5d5a6082fdcacfd9f1de1b2144101e705f2d322 (patch)
tree4df82794be575cb9da354943a532d3be2c2fcf53 /wizard/WizardCreateWallet.qml
parentecf844120b62e688e0527316d8f1322bfea06fe0 (diff)
downloadmonzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.tar.gz
monzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.tar.xz
monzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.zip
Wizard refactoring
Diffstat (limited to 'wizard/WizardCreateWallet.qml')
-rw-r--r--wizard/WizardCreateWallet.qml9
1 files changed, 9 insertions, 0 deletions
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
//