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

Show the health certificate signature verfication state as well

parent fab026d1
......@@ -116,6 +116,8 @@ if (ANDROID)
cross-shape
dialog-cancel
dialog-close
dialog-error-symbolic
dialog-ok
document-edit
document-import
document-open
......
......@@ -87,5 +87,28 @@ ColumnLayout {
Kirigami.FormData.label: i18n("Expires:")
visible: certificate.certificateExpiryDate.getTime() != 0
}
Kirigami.Icon {
source: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return "dialog-ok";
case KHC.HealthCertificate.UnknownSignature: return "question";
case KHC.HealthCertificate.InvalidSignature:
default:
return "dialog-error-symbolic";
}
}
height: Kirigami.Units.gridUnit
Kirigami.FormData.label: i18n("Signature:")
color: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return Kirigami.Theme.positiveTextColor;
case KHC.HealthCertificate.UnknownSignature: return Kirigami.Theme.neutralTextColor;
case KHC.HealthCertificate.InvalidSignature:
default:
return Kirigami.Theme.negativeTextColor;
}
}
visible: certificate.signatureState != KHC.HealthCertificate.UncheckedSignature
}
}
}
......@@ -109,5 +109,28 @@ ColumnLayout {
Kirigami.FormData.label: i18n("Expires:")
visible: certificate.certificateExpiryDate.getTime() != 0
}
Kirigami.Icon {
source: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return "dialog-ok";
case KHC.HealthCertificate.UnknownSignature: return "question";
case KHC.HealthCertificate.InvalidSignature:
default:
return "dialog-error-symbolic";
}
}
height: Kirigami.Units.gridUnit
Kirigami.FormData.label: i18n("Signature:")
color: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return Kirigami.Theme.positiveTextColor;
case KHC.HealthCertificate.UnknownSignature: return Kirigami.Theme.neutralTextColor;
case KHC.HealthCertificate.InvalidSignature:
default:
return Kirigami.Theme.negativeTextColor;
}
}
visible: certificate.signatureState != KHC.HealthCertificate.UncheckedSignature
}
}
}
......@@ -103,5 +103,28 @@ ColumnLayout {
Kirigami.FormData.label: i18n("Expires:")
visible: certificate.certificateExpiryDate.getTime() != 0
}
Kirigami.Icon {
source: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return "dialog-ok";
case KHC.HealthCertificate.UnknownSignature: return "question";
case KHC.HealthCertificate.InvalidSignature:
default:
return "dialog-error-symbolic";
}
}
height: Kirigami.Units.gridUnit
Kirigami.FormData.label: i18n("Signature:")
color: {
switch(certificate.signatureState) {
case KHC.HealthCertificate.ValidSignature: return Kirigami.Theme.positiveTextColor;
case KHC.HealthCertificate.UnknownSignature: return Kirigami.Theme.neutralTextColor;
case KHC.HealthCertificate.InvalidSignature:
default:
return Kirigami.Theme.negativeTextColor;
}
}
visible: certificate.signatureState != KHC.HealthCertificate.UncheckedSignature
}
}
}
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