web: fix linting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
1564b898db
commit
e5cfddfc57
|
@ -101,7 +101,9 @@ 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() > 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>
|
||||
|
|
|
@ -106,7 +106,9 @@ export class TokenListPage extends TablePage<Token> {
|
|||
row(item: Token): TemplateResult[] {
|
||||
return [
|
||||
html`<div>${item.identifier}</div>
|
||||
${item.managed ? html`<small>${t`Token is managed by authentik.`}</small>` : html``}`,
|
||||
${item.managed
|
||||
? html`<small>${t`Token is managed by authentik.`}</small>`
|
||||
: html``}`,
|
||||
html`<a href="#/identity/users/${item.userObj?.pk}">${item.userObj?.username}</a>`,
|
||||
html` <ak-label color=${item.expiring ? PFColor.Green : PFColor.Orange}>
|
||||
${item.expiring ? t`Yes` : t`No`}
|
||||
|
|
Reference in New Issue