mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-10 11:27:26 -04:00
Wizard refactoring
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user