respect auto_start when re-queuing item
This commit is contained in:
parent
15ab126a51
commit
432f277329
1 changed files with 3 additions and 1 deletions
|
|
@ -775,7 +775,7 @@ const removeItem = (item: StoreItem) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const retryItem = (item: StoreItem, re_add = false) => {
|
const retryItem = (item: StoreItem, re_add = false) => {
|
||||||
const item_req: Partial<StoreItem> = {
|
let item_req: Partial<StoreItem> = {
|
||||||
url: item.url,
|
url: item.url,
|
||||||
preset: item.preset,
|
preset: item.preset,
|
||||||
folder: item.folder,
|
folder: item.folder,
|
||||||
|
|
@ -783,7 +783,9 @@ const retryItem = (item: StoreItem, re_add = false) => {
|
||||||
template: item.template,
|
template: item.template,
|
||||||
cli: item?.cli,
|
cli: item?.cli,
|
||||||
extras: toRaw(item?.extras || {}) ?? {},
|
extras: toRaw(item?.extras || {}) ?? {},
|
||||||
|
auto_start: item.auto_start,
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('item_delete', { id: item._id, remove_file: false })
|
socket.emit('item_delete', { id: item._id, remove_file: false })
|
||||||
if (true === re_add) {
|
if (true === re_add) {
|
||||||
toast.info('Cleared the item from history, and added it to the new download form.')
|
toast.info('Cleared the item from history, and added it to the new download form.')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue