jobType: JobTypeClient = 'all'
jobTypes: JobTypeClient[] = [
- 'all',
'activitypub-follow',
'activitypub-http-broadcast',
'activitypub-http-fetcher',
'activitypub-http-unicast',
+ 'activitypub-refresher',
+ 'all',
'email',
- 'video-transcoding',
'video-file-import',
'video-import',
- 'videos-views',
- 'activitypub-refresher',
'video-live-ending',
'video-redundancy',
- 'video-live-ending'
+ 'video-transcoding',
+ 'videos-views'
]
jobs: Job[] = []
}
getColspan () {
- return this.jobState === 'all' ? 5 : 4
+ if (this.jobState === 'all' && this.hasProgress()) return 7
+
+ if (this.jobState === 'all' || this.hasProgress()) return 6
+
+ return 5
}
onJobStateOrTypeChanged () {
this.saveJobStateAndType()
}
+ hasProgress () {
+ return this.jobType === 'all' || this.jobType === 'video-transcoding'
+ }
+
+ getProgress (job: Job) {
+ if (job.state === 'active') return job.progress + '%'
+
+ return ''
+ }
+
protected loadData () {
let jobState = this.jobState as JobState
if (this.jobState === 'all') jobState = null