fix(@onboarding): Allow to enter last word in seed phrase import

fixes #5344
This commit is contained in:
Anthony Laibe 2022-04-06 10:39:23 +02:00 committed by Anthony Laibe
parent d2663d30a5
commit 27e3731b0b
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ OnboardingBasePage {
height: (grid.cellHeight - 28)
textEdit.input.anchors.leftMargin: 16
textEdit.input.anchors.rightMargin: 16
visible: !(((index === 13) || (index === 19)) && (grid.count === 20))
visible: grid.count !== 20 || (index !== 13 && index !== 19)
leftComponentText: (grid.count === 20) ? grid.wordIndex18[index] : grid.wordIndex[index]
inputList: BIP39_en { }
property int itemIndex: index
@ -95,7 +95,7 @@ OnboardingBasePage {
if (parseInt(grid.itemAtIndex(i).leftComponentText) === (parseInt(leftComponentText)+1)) {
grid.currentIndex = grid.itemAtIndex(i).itemIndex;
grid.itemAtIndex(i).textEdit.input.edit.forceActiveFocus();
if (grid.currentIndex === 11) {
if (grid.currentIndex === 12) {
grid.positionViewAtEnd();
if (grid.count === 20) {
grid.contentX = 1500;