mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
WebUI: Fix editing/creating category
This commit is contained in:
parent
ae8a6689dc
commit
dcbd16d98e
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@
|
||||||
fetch("api/v2/torrents/createCategory", {
|
fetch("api/v2/torrents/createCategory", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: new URLSearchParams({
|
body: new URLSearchParams({
|
||||||
...body,
|
...dlPathParams,
|
||||||
category: categoryName,
|
category: categoryName,
|
||||||
savePath: savePath
|
savePath: savePath
|
||||||
})
|
})
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
fetch("api/v2/torrents/editCategory", {
|
fetch("api/v2/torrents/editCategory", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: new URLSearchParams({
|
body: new URLSearchParams({
|
||||||
...body,
|
...dlPathParams,
|
||||||
category: uriCategoryName, // category name can't be changed
|
category: uriCategoryName, // category name can't be changed
|
||||||
savePath: savePath
|
savePath: savePath
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue