web/admin: fix alignment in tables with multiple elements in cell
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -70,7 +70,7 @@ export class CertificateKeyPairListPage extends TablePage<CertificateKeyPair> {
|
||||
.metadata=${(item: CertificateKeyPair) => {
|
||||
return [
|
||||
{ key: t`Name`, value: item.name },
|
||||
{ key: t`Expiry`, value: item.certExpiry.toLocaleString() },
|
||||
{ key: t`Expiry`, value: item.certExpiry?.toLocaleString() },
|
||||
];
|
||||
}}
|
||||
.usedBy=${(item: CertificateKeyPair) => {
|
||||
@ -101,7 +101,7 @@ export class CertificateKeyPairListPage extends TablePage<CertificateKeyPair> {
|
||||
html`<ak-label color=${item.privateKeyAvailable ? PFColor.Green : PFColor.Grey}>
|
||||
${item.privateKeyAvailable ? t`Yes (${item.privateKeyType?.toUpperCase()})` : t`No`}
|
||||
</ak-label>`,
|
||||
html`<ak-label color=${item.certExpiry > new Date() ? PFColor.Green : PFColor.Orange}>
|
||||
html`<ak-label color=${item.certExpiry || new Date() > new Date() ? PFColor.Green : PFColor.Orange}>
|
||||
${item.certExpiry?.toLocaleString()}
|
||||
</ak-label>`,
|
||||
html`<ak-forms-modal>
|
||||
|
Reference in New Issue
Block a user