diff --git a/web/src/pages/events/EventInfo.ts b/web/src/pages/events/EventInfo.ts index c51d7fe7f..2a1f73c22 100644 --- a/web/src/pages/events/EventInfo.ts +++ b/web/src/pages/events/EventInfo.ts @@ -5,6 +5,7 @@ import { Event, EventContext } from "../../api/Events"; import { Flow } from "../../api/Flows"; import { COMMON_STYLES } from "../../common/styles"; import "../../elements/Spinner"; +import "../../elements/Expand"; import { SpinnerSize } from "../../elements/Spinner"; @customElement("ak-event-info") @@ -86,12 +87,11 @@ export class EventInfo extends LitElement { case "login_failed": return html`

${gettext(`Attempted to log in as ${this.event.context.username}`)}

- `; + ${this.defaultResponse()}`; case "token_view": return html`

${gettext("Token:")}


- ${this.getModelInfo(this.event.context.token as EventContext)} - `; + ${this.getModelInfo(this.event.context.token as EventContext)}`; case "property_mapping_exception": return html`
@@ -102,7 +102,8 @@ export class EventInfo extends LitElement {

${gettext("Expression")}

${this.event.context.expression}
-
`; + + ${this.defaultResponse()}`; case "policy_exception": return html`
@@ -120,7 +121,8 @@ export class EventInfo extends LitElement {

${gettext("Exception")}

${this.event.context.message || this.event.context.error}
-
`; + + ${this.defaultResponse()}`; case "policy_execution": return html`
@@ -141,21 +143,23 @@ export class EventInfo extends LitElement {
  • ${gettext("Messages")}:
      ${((this.event.context.result as EventContext).messages as string[]).map(msg => { - return html`
    • ${msg}
    • `; - })} + return html`
    • ${msg}
    • `; + })}
  • -
    `; + + ${this.defaultResponse()}`; case "configuration_error": - return html`

    ${this.event.context.message}

    `; + return html`

    ${this.event.context.message}

    + ${this.defaultResponse()}`; case "update_available": return html`

    ${gettext("New version available!")}

    ${this.event.context.new_version} `; - // Action types which typically don't record any extra context. - // If context is not empty, we fall to the default response. + // Action types which typically don't record any extra context. + // If context is not empty, we fall to the default response. case "login": if ("using_source" in this.event.context) { return html`