fix(seedphrase): Add persistence to seed phrase screens

Closes: #5415
This commit is contained in:
Boris Melnik 2022-04-07 19:17:30 +03:00 committed by Iuri Matias
parent 61cbaf9d57
commit 8d2071eada
1 changed files with 11 additions and 1 deletions

View File

@ -69,6 +69,16 @@ OnboardingBasePage {
height: (grid.cellHeight - 28)
textEdit.input.anchors.leftMargin: 16
textEdit.input.anchors.rightMargin: 16
textEdit.text: {
for (var i in root.mnemonicInput) {
let p = root.mnemonicInput[i]
if (p.pos === seedWordInput.leftComponentText) {
return p.seed
}
}
return ""
}
visible: grid.count !== 20 || (index !== 13 && index !== 19)
leftComponentText: (grid.count === 20) ? grid.wordIndex18[index] : grid.wordIndex[index]
inputList: BIP39_en { }
@ -193,10 +203,10 @@ OnboardingBasePage {
onBackClicked: {
root.mnemonicString = "";
root.mnemonicInput = [];
if (!grid.atXBeginning) {
grid.positionViewAtBeginning();
} else {
root.mnemonicInput = [];
root.exit();
}
}