web/admin: fix chart label on dashboard user page (#7434)

* web: fix chart label on dashboard user page

* update translation files

* fix prettier lint
This commit is contained in:
macmoritz
2023-11-06 13:51:41 +01:00
committed by GitHub
parent c897271756
commit 90b8217eb2
12 changed files with 128 additions and 58 deletions

View File

@ -12,6 +12,9 @@ export class AdminModelPerDay extends AKChart<Coordinate[]> {
@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<Coordinate[]> {
return {
datasets: [
{
label: msg("Objects created"),
label: this.label || msg("Objects created"),
backgroundColor: "rgba(189, 229, 184, .5)",
spanGaps: true,
data: