mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 20:18:47 +00:00
Now those components are not aware of any logic in the upper layer, making the flows more structured and easier to follow. Required for: #17232
41 lines
1009 B
QML
41 lines
1009 B
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import AppLayouts.Onboarding.enums 1.0
|
|
|
|
/*!
|
|
\qmltype KeycardCreatePinDelayedPage
|
|
\inherits KeycardCreatePinPage
|
|
\brief It wraps KeycardCreatePinPage and controls it using authorizationState
|
|
and pinSettingState properties and adding minimal time of displaying a success
|
|
state.
|
|
*/
|
|
KeycardCreatePinPage {
|
|
id: root
|
|
|
|
required property int pinSettingState
|
|
required property int authorizationState
|
|
|
|
success: root.authorizationState === Onboarding.ProgressState.Success &&
|
|
root.pinSettingState === Onboarding.ProgressState.Success
|
|
|
|
signal finished
|
|
signal authorizationRequested
|
|
|
|
Timer {
|
|
interval: 2000
|
|
running: root.success
|
|
|
|
onTriggered: root.finished()
|
|
}
|
|
|
|
Connections {
|
|
target: root
|
|
|
|
function onPinSettingStateChanged() {
|
|
if (root.pinSettingState === Onboarding.ProgressState.Success)
|
|
root.authorizationRequested()
|
|
}
|
|
}
|
|
}
|