web/admin: hide expiry time if item is set to not expire (#8457)
* web/admin: hide expiry time if item is set to not expire Signed-off-by: Jens Langhammer <jens@goauthentik.io> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -62,7 +62,7 @@ export class UserConsentList extends Table<UserConsent> {
|
||||
row(item: UserConsent): TemplateResult[] {
|
||||
return [
|
||||
html`${item.application.name}`,
|
||||
html`${item.expires
|
||||
html`${item.expires && item.expiring
|
||||
? html`<div>${getRelativeTime(item.expires)}</div>
|
||||
<small>${item.expires.toLocaleString()}</small>`
|
||||
: msg("-")}`,
|
||||
|
||||
Reference in New Issue
Block a user