web/admin: improve display of system task exception

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-19 12:13:11 +01:00
parent 89c4a7b4a4
commit e78bc1b32f
No known key found for this signature in database
1 changed files with 9 additions and 2 deletions

View File

@ -255,7 +255,7 @@ new?labels=bug,from_authentik&title=${encodeURIComponent(title)}
<div class="pf-l-flex">
<div class="pf-l-flex__item">
<h3>${t`Exception`}</h3>
<code>${this.event.context.message}</code>
<pre>${this.event.context.message}</pre>
</div>
</div>
<ak-expand>${this.defaultResponse()}</ak-expand>`;
@ -263,7 +263,7 @@ new?labels=bug,from_authentik&title=${encodeURIComponent(title)}
return html`<div class="pf-l-flex">
<div class="pf-l-flex__item">
<h3>${t`Exception`}</h3>
<code>${this.event.context.message || this.event.context.error}</code>
<pre>${this.event.context.message || this.event.context.error}</pre>
</div>
<div class="pf-l-flex__item">
<h3>${t`Expression`}</h3>
@ -393,6 +393,13 @@ new?labels=bug,from_authentik&title=${encodeURIComponent(title)}
return html`<span>${t`No additional data available.`}</span>`;
}
return this.defaultResponse();
case EventActions.SystemTaskException:
return html`<div class="pf-l-flex">
<div class="pf-l-flex__item">
<h3>${t`Exception`}</h3>
<pre>${this.event.context.message}</pre>
</div>
</div>`;
default:
return this.defaultResponse();
}