Commit 174a9091 authored by Volker Krause's avatar Volker Krause
Browse files

Fix showing of the health certificate placeholder text

parent 7b972cdb
......@@ -54,6 +54,7 @@ Kirigami.ScrollablePage {
header: Item {
height: childrenRect.height + 2 * Kirigami.Units.largeSpacing
width: parent.width
visible: certSelector.count > 0
ColumnLayout {
anchors.top: parent.top
anchors.left: parent.left
......@@ -98,6 +99,8 @@ Kirigami.ScrollablePage {
Loader {
sourceComponent: {
if (certSelector.count == 0 || !certSelector.currentValue)
return helpText;
switch (certSelector.currentValue.type) {
case KHC.HealthCertificate.Vaccination:
return vaccinationDetails;
......@@ -105,9 +108,8 @@ Kirigami.ScrollablePage {
return testDetails;
case KHC.HealthCertificate.Recovery:
return recoveryDetails;
default:
return helpText;
}
return helpText;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment