jobType: JobTypeClient = 'all'
jobTypes: JobTypeClient[] = [
+ 'all',
+
'activitypub-follow',
'activitypub-http-broadcast',
'activitypub-http-fetcher',
'activitypub-http-unicast',
'activitypub-refresher',
- 'all',
+ 'activitypub-cleaner',
+ 'actor-keys',
'email',
'video-file-import',
'video-import',
'video-live-ending',
'video-redundancy',
'video-transcoding',
- 'videos-views'
+ 'videos-views',
+ 'move-to-object-storage'
]
jobs: Job[] = []
constructor (
private notifier: Notifier,
private jobsService: JobService
- ) {
+ ) {
super()
}
}
getColspan () {
- if (this.jobState === 'all' && this.hasProgress()) return 6
+ if (this.jobState === 'all' && this.hasProgress()) return 7
- if (this.jobState === 'all' || this.hasProgress()) return 5
+ if (this.jobState === 'all' || this.hasProgress()) return 6
- return 4
+ return 5
}
onJobStateOrTypeChanged () {
this.pagination.start = 0
- this.loadData()
+ this.reloadData()
this.saveJobStateAndType()
}
return ''
}
- protected loadData () {
+ refresh () {
+ this.jobs = []
+ this.totalRecords = 0
+
+ this.reloadData()
+ }
+
+ protected reloadData () {
let jobState = this.jobState as JobState
if (this.jobState === 'all') jobState = null
pagination: this.pagination,
sort: this.sort
})
- .subscribe(
- resultList => {
+ .subscribe({
+ next: resultList => {
this.jobs = resultList.data
this.totalRecords = resultList.total
},
- err => this.notifier.error(err.message)
- )
+ error: err => this.notifier.error(err.message)
+ })
}
private loadJobStateAndType () {