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/jobs/jobs.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/jobs/jobs.component.ts')
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index 96e0f25b0..25d75aed2 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -56,6 +56,21 @@ export class JobsComponent extends RestTable implements OnInit { | |||
56 | return 'JobsComponent' | 56 | return 'JobsComponent' |
57 | } | 57 | } |
58 | 58 | ||
59 | getJobStateClass (state: JobStateClient) { | ||
60 | switch (state) { | ||
61 | case 'active': | ||
62 | return 'badge-blue' | ||
63 | case 'completed': | ||
64 | return 'badge-green' | ||
65 | case 'delayed': | ||
66 | return 'badge-brown' | ||
67 | case 'failed': | ||
68 | return 'badge-red' | ||
69 | case 'waiting': | ||
70 | return 'badge-yellow' | ||
71 | } | ||
72 | } | ||
73 | |||
59 | onJobStateOrTypeChanged () { | 74 | onJobStateOrTypeChanged () { |
60 | this.pagination.start = 0 | 75 | this.pagination.start = 0 |
61 | 76 | ||