mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-15 16:18:53 +00:00
chore(Onboarding): continue the flow only after a successful unblock
- in other words, stop if we want some other flow instead, e.g. the factory reset
This commit is contained in:
parent
bf5de4087e
commit
6e2e6ffc55
@ -360,7 +360,9 @@ SQUtils.QObject {
|
||||
}
|
||||
onKeycardFactoryResetRequested: root.keycardFactoryResetRequested()
|
||||
|
||||
onFinished: {
|
||||
onFinished: (success) => {
|
||||
if (!success)
|
||||
return
|
||||
if (root.loginScreen) {
|
||||
root.loginRequested(root.loginScreen.selectedProfileKeyId,
|
||||
Onboarding.LoginMethod.Keycard, { pin })
|
||||
|
@ -23,7 +23,7 @@ SQUtils.QObject {
|
||||
signal keycardPinCreated(string pin)
|
||||
signal reloadKeycardRequested
|
||||
signal keycardFactoryResetRequested
|
||||
signal finished
|
||||
signal finished(bool success)
|
||||
|
||||
function init() {
|
||||
root.stackView.push(d.initialComponent())
|
||||
@ -47,7 +47,7 @@ SQUtils.QObject {
|
||||
|
||||
function finishWithFactoryReset() {
|
||||
root.keycardFactoryResetRequested()
|
||||
root.finished()
|
||||
root.finished(false)
|
||||
}
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ SQUtils.QObject {
|
||||
StatusButton {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: qsTr("Continue")
|
||||
onClicked: root.finished()
|
||||
onClicked: root.finished(true)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user