Commit 9c8d678a authored by Volker Krause's avatar Volker Krause
Browse files

Properly show SMART Health Card (SHC) vaccination certificates

Those are in use in a few places in North America, and populate fields
slightly differently than what we encountered so far.
parent 4f025809
......@@ -72,13 +72,14 @@ ColumnLayout {
Kirigami.FormData.label: i18n("Manufacturer:")
}
QQC2.Label {
text: i18n("%1/%2", certificate.dose, certificate.totalDoses)
text: certificate.totalDoses > 0 ? i18n("%1/%2", certificate.dose, certificate.totalDoses) : certificate.dose
Kirigami.FormData.label: i18n("Dose:")
color: certificate.dose < certificate.totalDoses ? Kirigami.Theme.neutralTextColor : Kirigami.Theme.textColor
}
QQC2.Label {
text: Localizer.countryFlag(certificate.country) + " " + Localizer.countryName(certificate.country)
Kirigami.FormData.label: i18n("Country:")
visible: certificate.country
}
Kirigami.Separator {
......@@ -94,6 +95,7 @@ ColumnLayout {
text: certificate.certificateId
Kirigami.FormData.label: i18n("Identifier:")
wrapMode: Text.Wrap
visible: certificate.certificateId
}
QQC2.Label {
text: certificate.certificateIssueDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
......
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