Commit 00fef1c5 authored by Volker Krause's avatar Volker Krause
Browse files

Only show certificate issue time when present

ICAO VDS certificates don't have that.
parent e61b291d
Pipeline #209134 passed with stage
in 2 minutes and 59 seconds
......@@ -78,6 +78,7 @@ ColumnLayout {
}
QQC2.Label {
text: certificate.certificateIssueDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
visible: !isNaN(certificate.certificateIssueDate.getTime())
Kirigami.FormData.label: i18n("Issued:")
}
QQC2.Label {
......
......@@ -112,6 +112,7 @@ ColumnLayout {
}
QQC2.Label {
text: certificate.certificateIssueDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
visible: !isNaN(certificate.certificateIssueDate.getTime())
Kirigami.FormData.label: i18n("Issued:")
}
QQC2.Label {
......
......@@ -115,6 +115,7 @@ ColumnLayout {
}
QQC2.Label {
text: certificate.certificateIssueDate.toLocaleString(Qt.locale(), Locale.ShortFormat)
visible: !isNaN(certificate.certificateIssueDate.getTime())
Kirigami.FormData.label: i18n("Issued:")
}
QQC2.Label {
......
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