bugfix: items in download bar waiting for others downloads to finish could not be removed, this corrects #68
This commit is contained in:
parent
d3e1b71faf
commit
8abec22794
File diff suppressed because one or more lines are too long
@ -159,11 +159,14 @@ export default {
|
|||||||
finishedWithFails() {
|
finishedWithFails() {
|
||||||
return this.queueItem.status === 'download finished' && this.hasFails
|
return this.queueItem.status === 'download finished' && this.hasFails
|
||||||
},
|
},
|
||||||
|
isDeterminateStatus() {
|
||||||
|
return possibleStates.indexOf(this.queueItem.status) !== -1
|
||||||
|
},
|
||||||
barClass() {
|
barClass() {
|
||||||
return {
|
return {
|
||||||
converting: this.queueItem.status === 'converting',
|
converting: this.queueItem.status === 'converting',
|
||||||
indeterminate: possibleStates.indexOf(this.queueItem.status) === -1,
|
indeterminate: !this.isDeterminateStatus,
|
||||||
determinate: possibleStates.indexOf(this.queueItem.status) !== -1
|
determinate: this.isDeterminateStatus
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barStyle() {
|
barStyle() {
|
||||||
@ -220,6 +223,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResultIconClick() {
|
onResultIconClick() {
|
||||||
|
if (this.isDeterminateStatus) {
|
||||||
if (this.finishedWithFails) {
|
if (this.finishedWithFails) {
|
||||||
this.$emit('show-errors', this.queueItem)
|
this.$emit('show-errors', this.queueItem)
|
||||||
}
|
}
|
||||||
@ -228,6 +232,10 @@ export default {
|
|||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
this.$emit('remove-item', this.queueItem.uuid)
|
this.$emit('remove-item', this.queueItem.uuid)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.isLoading = true
|
||||||
|
this.$emit('remove-item', this.queueItem.uuid)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user