From 7f0d85616944681ed447f4342d86eee8141c7612 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 27 Aug 2020 17:27:37 +0200 Subject: jobs/logs view select and empty state visual improvements --- client/src/app/+admin/system/logs/logs.component.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'client/src/app/+admin/system/logs/logs.component.ts') diff --git a/client/src/app/+admin/system/logs/logs.component.ts b/client/src/app/+admin/system/logs/logs.component.ts index c9c9dc3d1..62b8bc0b9 100644 --- a/client/src/app/+admin/system/logs/logs.component.ts +++ b/client/src/app/+admin/system/logs/logs.component.ts @@ -14,7 +14,7 @@ export class LogsComponent implements OnInit { loading = false logs: LogRow[] = [] - timeChoices: { id: string, label: string }[] = [] + timeChoices: { id: string, label: string, dateFormat: string }[] = [] levelChoices: { id: LogLevel, label: string }[] = [] logTypeChoices: { id: 'audit' | 'standard', label: string }[] = [] @@ -76,15 +76,18 @@ export class LogsComponent implements OnInit { this.timeChoices = [ { id: lastWeek.toISOString(), - label: $localize`Last week` + label: $localize`Last week`, + dateFormat: 'shortDate' }, { id: lastDay.toISOString(), - label: $localize`Last day` + label: $localize`Last day`, + dateFormat: 'short' }, { id: lastHour.toISOString(), - label: $localize`Last hour` + label: $localize`Last hour`, + dateFormat: 'mediumTime' } ] @@ -95,19 +98,19 @@ export class LogsComponent implements OnInit { this.levelChoices = [ { id: 'debug', - label: $localize`Debug` + label: $localize`debug` }, { id: 'info', - label: $localize`Info` + label: $localize`info` }, { id: 'warn', - label: $localize`Warning` + label: $localize`warning` }, { id: 'error', - label: $localize`Error` + label: $localize`error` } ] -- cgit v1.2.3