Commit d9aa4e5f authored by Volker Krause's avatar Volker Krause
Browse files

Defer to KHealthCertificate for checking for too recent vaccinations

Removes the hard-coded logic here that isn't true anymore for COVID-19
booster shots.
parent de80370e
Pipeline #215938 passed with stage
in 3 minutes and 49 seconds
......@@ -58,7 +58,7 @@ ColumnLayout {
return formattedDate;
}
Kirigami.FormData.label: i18n("Date:")
color: days >= 14 ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.neutralTextColor
color: certificate.vaccinationState != KHC.VaccinationCertificate.VaccinationTooRecent ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.neutralTextColor
font.bold: true
visible: !isNaN(certificate.date.getTime())
}
......
Supports Markdown
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