jobTypes: JobTypeClient[] = [
'all',
+ 'activitypub-cleaner',
'activitypub-follow',
+ 'activitypub-http-broadcast-parallel',
'activitypub-http-broadcast',
'activitypub-http-fetcher',
'activitypub-http-unicast',
'activitypub-refresher',
- 'activitypub-cleaner',
'actor-keys',
+ 'after-video-channel-import',
'email',
+ 'federate-video',
+ 'manage-video-torrent',
+ 'move-to-object-storage',
+ 'notify',
+ 'video-channel-import',
'video-file-import',
'video-import',
'video-live-ending',
'video-redundancy',
+ 'video-studio-edition',
'video-transcoding',
- 'videos-views-stats',
- 'move-to-object-storage'
+ 'videos-views-stats'
]
jobs: Job[] = []
}
getColspan () {
- if (this.jobState === 'all' && this.hasProgress()) return 7
+ if (this.jobState === 'all' && this.hasGlobalProgress()) return 7
- if (this.jobState === 'all' || this.hasProgress()) return 6
+ if (this.jobState === 'all' || this.hasGlobalProgress()) return 6
return 5
}
this.saveJobStateAndType()
}
- hasProgress () {
+ hasGlobalProgress () {
return this.jobType === 'all' || this.jobType === 'video-transcoding'
}
+ hasProgress (job: Job) {
+ return job.type === 'video-transcoding'
+ }
+
getProgress (job: Job) {
if (job.state === 'active') return job.progress + '%'