mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Updating download edit form to include the tag names alread set for the download.
This commit is contained in:
parent
8a03ceec52
commit
f779369bb8
1 changed files with 4 additions and 3 deletions
|
|
@ -284,7 +284,7 @@ function RecurringDownloadRow({download, fetchDownloads, onDelete}) {
|
|||
function OnceDownloadRow({download, fetchDownloads, isSelected, onSelect}) {
|
||||
const [editModalOpen, setEditModalOpen] = React.useState(false);
|
||||
|
||||
const {url, last_successful_download, status, location, error, downloader, settings, id} = download;
|
||||
const {url, last_successful_download, status, location, error, downloader, settings, id, tag_names} = download;
|
||||
|
||||
const handleDelete = async () => {
|
||||
try {
|
||||
|
|
@ -404,7 +404,8 @@ function OnceDownloadRow({download, fetchDownloads, isSelected, onSelect}) {
|
|||
download={{
|
||||
urls: url,
|
||||
settings: settings || {},
|
||||
id: id
|
||||
id: id,
|
||||
tag_names: tag_names || []
|
||||
}}
|
||||
onCancel={handleEditClose}
|
||||
onSuccess={handleEditSuccess}
|
||||
|
|
@ -425,7 +426,7 @@ function OnceDownloadRow({download, fetchDownloads, isSelected, onSelect}) {
|
|||
<EditArchiveDownloadForm
|
||||
download={{
|
||||
urls: url,
|
||||
tag_names: settings?.tag_names || [],
|
||||
tag_names: tag_names || [],
|
||||
id: id
|
||||
}}
|
||||
onCancel={handleEditClose}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue