status-desktop/ui/app/AppLayouts/Onboarding2/pages/KeycardNotEmptyPage.qml
Lukáš Tinkl a9066806b5 chore(Onboarding): Remove all "Reload keycard state" buttons
- the manual "I've insterted a keycard" reload buttons are no longer
needed; we can rely solely on the HW keycard state
- when doing a "Restart", also reset the internal mock/store states

Fixes #17234
2025-02-07 13:10:58 +01:00

30 lines
824 B
QML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import QtQuick 2.15
import StatusQ.Core.Theme 0.1
import AppLayouts.Onboarding2.controls 1.0
KeycardBasePage {
id: root
signal loginWithThisKeycardRequested()
signal keycardFactoryResetRequested()
title: qsTr("Keycard is not empty")
subtitle: qsTr("You cant use it to store new keys right now")
image.source: Theme.png("onboarding/keycard/error")
buttons: [
MaybeOutlineButton {
text: qsTr("Log in with this Keycard")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: root.loginWithThisKeycardRequested()
},
MaybeOutlineButton {
text: qsTr("Factory reset Keycard")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: root.keycardFactoryResetRequested()
}
]
}