+ 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 + '%'
+
+ return ''
+ }
+
+ refresh () {
+ this.jobs = []
+ this.totalRecords = 0
+
+ this.reloadData()
+ }
+
+ protected reloadData () {
+ let jobState = this.jobState as JobState
+ if (this.jobState === 'all') jobState = null
+