mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-25 19:05:51 +03:00
fix: Unable to delete / create tags and categories (#628)
This commit is contained in:
parent
d2c0817bee
commit
4fa63ac162
4 changed files with 7 additions and 7 deletions
|
@ -42,7 +42,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
create() {
|
||||
qbit.createTag(this.tagname)
|
||||
qbit.createTag([this.tagname])
|
||||
this.cancel()
|
||||
},
|
||||
cancel() {
|
||||
|
|
|
@ -96,11 +96,11 @@ export default {
|
|||
this.createModal('CreateCategoryDialog')
|
||||
},
|
||||
deleteCategory(category) {
|
||||
qbit.deleteCategory(category.name)
|
||||
qbit.deleteCategory([category.name])
|
||||
this.$store.commit('FETCH_CATEGORIES')
|
||||
},
|
||||
deleteTag(item) {
|
||||
qbit.deleteTag(item)
|
||||
qbit.deleteTag([item])
|
||||
this.$store.commit('FETCH_TAGS')
|
||||
},
|
||||
editCategory(cat) {
|
||||
|
|
|
@ -418,10 +418,10 @@ export default {
|
|||
else this.addTag(tag)
|
||||
},
|
||||
addTag(tag) {
|
||||
qbit.addTorrentTag(this.hashes, tag)
|
||||
qbit.addTorrentTag(this.hashes, [tag])
|
||||
},
|
||||
removeTag(tag) {
|
||||
qbit.removeTorrentTag(this.hashes, tag)
|
||||
qbit.removeTorrentTag(this.hashes, [tag])
|
||||
},
|
||||
toggleSeq() {
|
||||
qbit.toggleSequentialDownload(this.hashes)
|
||||
|
|
|
@ -82,10 +82,10 @@ export default {
|
|||
return this.deleteTag(tag)
|
||||
}
|
||||
|
||||
return qbit.addTorrentTag([this.hash], tag)
|
||||
return qbit.addTorrentTag([this.hash], [tag])
|
||||
},
|
||||
deleteTag(tag) {
|
||||
qbit.removeTorrentTag([this.hash], tag)
|
||||
qbit.removeTorrentTag([this.hash], [tag])
|
||||
},
|
||||
setCategory(cat) {
|
||||
if (this.torrent.category === cat.name) {
|
||||
|
|
Loading…
Reference in a new issue