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,11 +223,16 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResultIconClick() {
|
onResultIconClick() {
|
||||||
if (this.finishedWithFails) {
|
if (this.isDeterminateStatus) {
|
||||||
this.$emit('show-errors', this.queueItem)
|
if (this.finishedWithFails) {
|
||||||
}
|
this.$emit('show-errors', this.queueItem)
|
||||||
|
}
|
||||||
|
|
||||||
if (this.queueItem.status === 'downloading') {
|
if (this.queueItem.status === 'downloading') {
|
||||||
|
this.isLoading = true
|
||||||
|
this.$emit('remove-item', this.queueItem.uuid)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
this.$emit('remove-item', this.queueItem.uuid)
|
this.$emit('remove-item', this.queueItem.uuid)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user