mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-09 10:04:48 +00:00
Next button is in "disabled" state on password page
This commit is contained in:
parent
46db7715f9
commit
bbc35ff484
2 changed files with 6 additions and 7 deletions
|
@ -60,15 +60,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// disallow "next" button until passwords match
|
// disable "next" button until passwords match
|
||||||
if (pages[currentPage] === passwordPage) {
|
if (pages[currentPage] === passwordPage) {
|
||||||
nextButton.visible = passwordPage.passwordValid;
|
nextButton.enabled = passwordPage.passwordValid;
|
||||||
} else if (pages[currentPage] === finishPage) {
|
} else if (pages[currentPage] === finishPage) {
|
||||||
// display settings summary
|
// display settings summary
|
||||||
finishPage.updateSettingsSummary();
|
finishPage.updateSettingsSummary();
|
||||||
nextButton.visible = false
|
nextButton.visible = false
|
||||||
} else {
|
} else {
|
||||||
nextButton.visible = true
|
nextButton.visible = true
|
||||||
|
nextButton.enabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,10 +80,10 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 50
|
anchors.rightMargin: 50
|
||||||
visible: wizard.currentPage !== 1 && wizard.currentPage !== 6
|
visible: wizard.currentPage !== 1 && wizard.currentPage !== 6
|
||||||
|
|
||||||
width: 50; height: 50
|
width: 50; height: 50
|
||||||
radius: 25
|
radius: 25
|
||||||
color: nextArea.containsMouse ? "#FF4304" : "#FF6C3C"
|
color: enabled ? nextArea.containsMouse ? "#FF4304" : "#FF6C3C" : "#DBDBDB"
|
||||||
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
|
@ -40,10 +40,8 @@ Item {
|
||||||
|
|
||||||
function handlePassword() {
|
function handlePassword() {
|
||||||
// allow to forward step only if passwords match
|
// allow to forward step only if passwords match
|
||||||
// print("pass1: ", passwordItem.password)
|
|
||||||
// print("pass2: ", retypePasswordItem.password)
|
|
||||||
// TODO: update password strength
|
// TODO: update password strength
|
||||||
wizard.nextButton.visible = passwordItem.password === retypePasswordItem.password
|
wizard.nextButton.enabled = passwordItem.password === retypePasswordItem.password
|
||||||
}
|
}
|
||||||
|
|
||||||
property bool passwordValid : passwordItem.password != ''
|
property bool passwordValid : passwordItem.password != ''
|
||||||
|
|
Loading…
Reference in a new issue