mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
fix: search results not loading until stopped (#391)
This commit is contained in:
parent
84750af3d4
commit
8b126d8df5
2 changed files with 3 additions and 4 deletions
|
@ -150,8 +150,8 @@ export default {
|
|||
if (status === 'Stopped') {
|
||||
clearInterval(this.search.interval)
|
||||
this.search.interval = null
|
||||
await this.getResults()
|
||||
}
|
||||
await this.getResults()
|
||||
}, 500)
|
||||
}
|
||||
},
|
||||
|
@ -165,13 +165,13 @@ export default {
|
|||
async getResults() {
|
||||
const data = await qbit.getSearchResults(this.search.id)
|
||||
this.search.results = data.results
|
||||
this.loading = false
|
||||
},
|
||||
downloadTorrent(item) {
|
||||
this.createModal('addModal', { initialMagnet: item.fileUrl })
|
||||
},
|
||||
stopSearch() {
|
||||
qbit.stopSearch(this.search.id)
|
||||
this.loading = false
|
||||
},
|
||||
close() {
|
||||
this.dialog = false
|
||||
|
|
|
@ -393,8 +393,7 @@ class Qbit {
|
|||
|
||||
getSearchResults(id) {
|
||||
return this.execute('post', '/search/results', {
|
||||
id,
|
||||
limit: 50
|
||||
id
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue