diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-26 10:00:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-26 10:00:23 +0100 |
commit | 83e74670419d8faf005d36ef2e8b8ac3166012d7 (patch) | |
tree | eb7d4aaa99ceb8b697b1fad1d43229b52d9a7299 /client/src/app/+admin/system/jobs/jobs.component.ts | |
parent | 1e743faafeed89af13ee9dd3d62c1ceb696779cd (diff) | |
download | PeerTube-83e74670419d8faf005d36ef2e8b8ac3166012d7.tar.gz PeerTube-83e74670419d8faf005d36ef2e8b8ac3166012d7.tar.zst PeerTube-83e74670419d8faf005d36ef2e8b8ac3166012d7.zip |
Add refresh button in jobs list
Diffstat (limited to 'client/src/app/+admin/system/jobs/jobs.component.ts')
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index 925450286..731c1c0c4 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -44,7 +44,7 @@ export class JobsComponent extends RestTable implements OnInit { | |||
44 | constructor ( | 44 | constructor ( |
45 | private notifier: Notifier, | 45 | private notifier: Notifier, |
46 | private jobsService: JobService | 46 | private jobsService: JobService |
47 | ) { | 47 | ) { |
48 | super() | 48 | super() |
49 | } | 49 | } |
50 | 50 | ||
@@ -97,6 +97,13 @@ export class JobsComponent extends RestTable implements OnInit { | |||
97 | return '' | 97 | return '' |
98 | } | 98 | } |
99 | 99 | ||
100 | refresh () { | ||
101 | this.jobs = [] | ||
102 | this.totalRecords = 0 | ||
103 | |||
104 | this.loadData() | ||
105 | } | ||
106 | |||
100 | protected loadData () { | 107 | protected loadData () { |
101 | let jobState = this.jobState as JobState | 108 | let jobState = this.jobState as JobState |
102 | if (this.jobState === 'all') jobState = null | 109 | if (this.jobState === 'all') jobState = null |