jobType: JobTypeClient = 'all'
jobTypes: JobTypeClient[] = [
'all',
+
'activitypub-follow',
'activitypub-http-broadcast',
'activitypub-http-fetcher',
'activitypub-http-unicast',
+ 'activitypub-refresher',
+ 'activitypub-cleaner',
+ 'actor-keys',
'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[] = []
constructor (
private notifier: Notifier,
private jobsService: JobService
- ) {
+ ) {
super()
}
}
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 () {
return ''
}
+ refresh () {
+ this.jobs = []
+ this.totalRecords = 0
+
+ this.loadData()
+ }
+
protected loadData () {
let jobState = this.jobState as JobState
if (this.jobState === 'all') jobState = null