Commit 28616aaf authored by Volker Krause's avatar Volker Krause
Browse files

Make use of vaccine/test product URLs

parent 420e8b3a
......@@ -62,21 +62,17 @@ ColumnLayout {
Kirigami.FormData.label: i18n("Type:")
visible: certificate.testType
}
QQC2.Label {
text: certificate.testUrl != "" ? '<a href="' + certificate.testUrl + '">' + certificate.testName + '</a>' : certificate.testName
visible: certificate.testName.length > 0
Kirigami.FormData.label: i18n("Test:")
onLinkActivated: Qt.openUrlExternally(link)
}
QQC2.Label {
text: certificate.resultString
Kirigami.FormData.label: i18n("Result:")
color: certificate.result == KHC.TestCertificate.Positive ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
}
QQC2.Label {
text: certificate.naaTestName
visible: certificate.naaTestName.length > 0
Kirigami.FormData.label: i18n("NAA Test:")
}
QQC2.Label {
text: certificate.ratTest
visible: certificate.ratTest.length > 0
Kirigami.FormData.label: i18n("RAT Test:")
}
QQC2.Label {
text: certificate.testCenter
Kirigami.FormData.label: i18n("Test Center:")
......
......@@ -63,8 +63,9 @@ ColumnLayout {
visible: certificate.vaccineType
}
QQC2.Label {
text: certificate.vaccine
text: certificate.vaccineUrl != "" ? '<a href="' + certificate.vaccineUrl + '">' + certificate.vaccine + '</a>' : certificate.vaccine
Kirigami.FormData.label: i18n("Vaccine:")
onLinkActivated: Qt.openUrlExternally(link)
}
QQC2.Label {
text: certificate.manufacturer
......
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