From df424802842c173ec52e720618b01011a478c560 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Jan 2023 23:57:05 +0100 Subject: [PATCH] web/elements: use correct Action Label for user related events Signed-off-by: Jens Langhammer --- web/src/elements/events/UserEvents.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/elements/events/UserEvents.ts b/web/src/elements/events/UserEvents.ts index 7b686ebee..c400e08bd 100644 --- a/web/src/elements/events/UserEvents.ts +++ b/web/src/elements/events/UserEvents.ts @@ -1,5 +1,6 @@ import "@goauthentik/admin/events/EventInfo"; import "@goauthentik/admin/events/EventInfo"; +import { ActionToLabel } from "@goauthentik/admin/events/utils"; import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { EventWithContext } from "@goauthentik/common/events"; import { uiConfig } from "@goauthentik/common/ui/config"; @@ -47,7 +48,7 @@ export class UserEvents extends Table { row(item: EventWithContext): TemplateResult[] { return [ - html`${item.action}`, + html`${ActionToLabel(item.action)}`, html`
${item.user?.username}
${item.user.on_behalf_of ? html` ${t`On behalf of ${item.user.on_behalf_of.username}`} `