mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 12:08:53 +00:00
40 lines
1.1 KiB
QML
40 lines
1.1 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
import AppLayouts.Onboarding2.pages 1.0
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
OnboardingStackView {
|
|
id: root
|
|
|
|
required property var isSeedPhraseValid
|
|
required property int pinSettingState
|
|
|
|
signal seedphraseSubmitted(string seedphrase)
|
|
signal setPinRequested(string pin)
|
|
signal finished
|
|
|
|
initialItem: SeedphrasePage {
|
|
title: qsTr("Unblock Keycard using the recovery phrase")
|
|
btnContinueText: qsTr("Unblock Keycard")
|
|
isSeedPhraseValid: root.isSeedPhraseValid
|
|
|
|
onSeedphraseSubmitted: (seedphrase) => {
|
|
root.seedphraseSubmitted(seedphrase)
|
|
root.push(keycardCreatePinPage)
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: keycardCreatePinPage
|
|
|
|
KeycardCreatePinDelayedPage {
|
|
pinSettingState: root.pinSettingState
|
|
authorizationState: Onboarding.AuthorizationState.Authorized // authorization not needed
|
|
|
|
onSetPinRequested: root.setPinRequested(pin)
|
|
onFinished: root.finished()
|
|
}
|
|
}
|
|
}
|