diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-08-27 17:27:37 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-09-28 13:25:50 +0200 |
commit | 7f0d85616944681ed447f4342d86eee8141c7612 (patch) | |
tree | dc51b7dd989f7bcdff37ef1332a61d05a652ab53 /client/src/app/+admin/system/logs/logs.component.ts | |
parent | cd372e840b6a291a56e0d5135548d05a98415155 (diff) | |
download | PeerTube-7f0d85616944681ed447f4342d86eee8141c7612.tar.gz PeerTube-7f0d85616944681ed447f4342d86eee8141c7612.tar.zst PeerTube-7f0d85616944681ed447f4342d86eee8141c7612.zip |
jobs/logs view select and empty state visual improvements
Diffstat (limited to 'client/src/app/+admin/system/logs/logs.component.ts')
-rw-r--r-- | client/src/app/+admin/system/logs/logs.component.ts | 19 |
1 files changed, 11 insertions, 8 deletions
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 { | |||
14 | loading = false | 14 | loading = false |
15 | 15 | ||
16 | logs: LogRow[] = [] | 16 | logs: LogRow[] = [] |
17 | timeChoices: { id: string, label: string }[] = [] | 17 | timeChoices: { id: string, label: string, dateFormat: string }[] = [] |
18 | levelChoices: { id: LogLevel, label: string }[] = [] | 18 | levelChoices: { id: LogLevel, label: string }[] = [] |
19 | logTypeChoices: { id: 'audit' | 'standard', label: string }[] = [] | 19 | logTypeChoices: { id: 'audit' | 'standard', label: string }[] = [] |
20 | 20 | ||
@@ -76,15 +76,18 @@ export class LogsComponent implements OnInit { | |||
76 | this.timeChoices = [ | 76 | this.timeChoices = [ |
77 | { | 77 | { |
78 | id: lastWeek.toISOString(), | 78 | id: lastWeek.toISOString(), |
79 | label: $localize`Last week` | 79 | label: $localize`Last week`, |
80 | dateFormat: 'shortDate' | ||
80 | }, | 81 | }, |
81 | { | 82 | { |
82 | id: lastDay.toISOString(), | 83 | id: lastDay.toISOString(), |
83 | label: $localize`Last day` | 84 | label: $localize`Last day`, |
85 | dateFormat: 'short' | ||
84 | }, | 86 | }, |
85 | { | 87 | { |
86 | id: lastHour.toISOString(), | 88 | id: lastHour.toISOString(), |
87 | label: $localize`Last hour` | 89 | label: $localize`Last hour`, |
90 | dateFormat: 'mediumTime' | ||
88 | } | 91 | } |
89 | ] | 92 | ] |
90 | 93 | ||
@@ -95,19 +98,19 @@ export class LogsComponent implements OnInit { | |||
95 | this.levelChoices = [ | 98 | this.levelChoices = [ |
96 | { | 99 | { |
97 | id: 'debug', | 100 | id: 'debug', |
98 | label: $localize`Debug` | 101 | label: $localize`debug` |
99 | }, | 102 | }, |
100 | { | 103 | { |
101 | id: 'info', | 104 | id: 'info', |
102 | label: $localize`Info` | 105 | label: $localize`info` |
103 | }, | 106 | }, |
104 | { | 107 | { |
105 | id: 'warn', | 108 | id: 'warn', |
106 | label: $localize`Warning` | 109 | label: $localize`warning` |
107 | }, | 110 | }, |
108 | { | 111 | { |
109 | id: 'error', | 112 | id: 'error', |
110 | label: $localize`Error` | 113 | label: $localize`error` |
111 | } | 114 | } |
112 | ] | 115 | ] |
113 | 116 | ||