mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 05:22:14 -07:00
Add: option to skip automatic redownload when removing from queue (#734)
* Add: option to skip automatic redownload when removing from queue * Add tests for RedownloadFailedDownloadService * Fix formatting * Make re-download dialog conditional
This commit is contained in:
parent
0f6a3bca0c
commit
8cd9ab4a9f
13 changed files with 230 additions and 35 deletions
|
@ -351,13 +351,14 @@ export const actionHandlers = handleThunks({
|
|||
[REMOVE_QUEUE_ITEM]: function(getState, payload, dispatch) {
|
||||
const {
|
||||
id,
|
||||
blacklist
|
||||
blacklist,
|
||||
skipredownload
|
||||
} = payload;
|
||||
|
||||
dispatch(updateItem({ section: paged, id, isRemoving: true }));
|
||||
|
||||
const promise = createAjaxRequest({
|
||||
url: `/queue/${id}?blacklist=${blacklist}`,
|
||||
url: `/queue/${id}?blacklist=${blacklist}&skipredownload=${skipredownload}`,
|
||||
method: 'DELETE'
|
||||
}).request;
|
||||
|
||||
|
@ -373,7 +374,8 @@ export const actionHandlers = handleThunks({
|
|||
[REMOVE_QUEUE_ITEMS]: function(getState, payload, dispatch) {
|
||||
const {
|
||||
ids,
|
||||
blacklist
|
||||
blacklist,
|
||||
skipredownload
|
||||
} = payload;
|
||||
|
||||
dispatch(batchActions([
|
||||
|
@ -389,7 +391,7 @@ export const actionHandlers = handleThunks({
|
|||
]));
|
||||
|
||||
const promise = createAjaxRequest({
|
||||
url: `/queue/bulk?blacklist=${blacklist}`,
|
||||
url: `/queue/bulk?blacklist=${blacklist}&skipredownload=${skipredownload}`,
|
||||
method: 'DELETE',
|
||||
dataType: 'json',
|
||||
data: JSON.stringify({ ids })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue