From 90b8217eb2ee1d441922012d950aa0b938eb0f42 Mon Sep 17 00:00:00 2001
From: macmoritz <49832924+macmoritz@users.noreply.github.com>
Date: Mon, 6 Nov 2023 13:51:41 +0100
Subject: [PATCH] web/admin: fix chart label on dashboard user page (#7434)
* web: fix chart label on dashboard user page
* update translation files
* fix prettier lint
---
.../admin/admin-overview/DashboardUserPage.ts | 11 ++-
.../admin-overview/charts/AdminModelPerDay.ts | 5 +-
web/xliff/de.xlf | 6 ++
web/xliff/en.xlf | 6 ++
web/xliff/es.xlf | 6 ++
web/xliff/fr.xlf | 70 ++++++++++---------
web/xliff/pl.xlf | 6 ++
web/xliff/pseudo-LOCALE.xlf | 6 ++
web/xliff/tr.xlf | 6 ++
web/xliff/zh-Hans.xlf | 52 ++++++++------
web/xliff/zh-Hant.xlf | 6 ++
web/xliff/zh_TW.xlf | 6 ++
12 files changed, 128 insertions(+), 58 deletions(-)
diff --git a/web/src/admin/admin-overview/DashboardUserPage.ts b/web/src/admin/admin-overview/DashboardUserPage.ts
index 94e788bf4..b3829ed6a 100644
--- a/web/src/admin/admin-overview/DashboardUserPage.ts
+++ b/web/src/admin/admin-overview/DashboardUserPage.ts
@@ -54,6 +54,7 @@ export class DashboardUserPage extends AKElement {
context__model__app: "authentik_core",
context__model__model_name: "user",
}}
+ label=${msg("Users created")}
>
@@ -66,7 +67,10 @@ export class DashboardUserPage extends AKElement {
class="pf-l-grid__item pf-m-12-col pf-m-6-col-on-xl pf-m-6-col-on-2xl big-graph-container"
>
-
+
@@ -74,7 +78,10 @@ export class DashboardUserPage extends AKElement {
class="pf-l-grid__item pf-m-12-col pf-m-6-col-on-xl pf-m-6-col-on-2xl big-graph-container"
>
-
+
diff --git a/web/src/admin/admin-overview/charts/AdminModelPerDay.ts b/web/src/admin/admin-overview/charts/AdminModelPerDay.ts
index bc88b3d83..eb4a3a4e2 100644
--- a/web/src/admin/admin-overview/charts/AdminModelPerDay.ts
+++ b/web/src/admin/admin-overview/charts/AdminModelPerDay.ts
@@ -12,6 +12,9 @@ export class AdminModelPerDay extends AKChart {
@property()
action: EventActions = EventActions.ModelCreated;
+ @property()
+ label?: string;
+
@property({ attribute: false })
query?: { [key: string]: unknown } | undefined;
@@ -33,7 +36,7 @@ export class AdminModelPerDay extends AKChart {
return {
datasets: [
{
- label: msg("Objects created"),
+ label: this.label || msg("Objects created"),
backgroundColor: "rgba(189, 229, 184, .5)",
spanGaps: true,
data:
diff --git a/web/xliff/de.xlf b/web/xliff/de.xlf
index 1e95e6975..a1737f42f 100644
--- a/web/xliff/de.xlf
+++ b/web/xliff/de.xlf
@@ -6037,6 +6037,12 @@ Bindings to groups/users are checked against the user of the event.
+
+
+
+
+
+