fix: Unable to delete / create tags and categories (#628)

This commit is contained in:
Rémi Marseault 2023-01-29 18:18:07 +01:00 committed by GitHub
parent d2c0817bee
commit 4fa63ac162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -42,7 +42,7 @@ export default {
},
methods: {
create() {
qbit.createTag(this.tagname)
qbit.createTag([this.tagname])
this.cancel()
},
cancel() {

View file

@ -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) {

View file

@ -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)

View file

@ -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) {