mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-28 19:06:19 -05:00
Adding edit form for Scrape downloader.
This commit is contained in:
parent
bf29bdcff7
commit
fe521c99f3
17 changed files with 314 additions and 262 deletions
|
|
@ -31,7 +31,12 @@ import {
|
|||
} from "semantic-ui-react";
|
||||
import {Button, Header, Modal, ModalActions, ModalContent, ModalHeader, Placeholder, Segment, Table} from "../Theme";
|
||||
import {useDownloads} from "../../hooks/customHooks";
|
||||
import {EditChannelDownloadForm, EditRSSDownloadForm, EditZimDownloadForm} from "../Download";
|
||||
import {
|
||||
EditChannelDownloadForm,
|
||||
EditRSSDownloadForm,
|
||||
EditScrapeFilesDownloadForm,
|
||||
EditZimDownloadForm
|
||||
} from "../Download";
|
||||
import {Downloaders} from "../Vars";
|
||||
|
||||
function ClearDownloadsButton({callback}) {
|
||||
|
|
@ -200,6 +205,13 @@ function RecurringDownloadRow({download, fetchDownloads, onDelete}) {
|
|||
onCancel={handleEditClose}
|
||||
onSuccess={onSuccess}
|
||||
/>;
|
||||
} else if (downloader === Downloaders.ScrapeHtml) {
|
||||
editForm = <EditScrapeFilesDownloadForm
|
||||
download={download}
|
||||
onDelete={localOnDelete}
|
||||
onCancel={handleEditClose}
|
||||
onSuccess={onSuccess}
|
||||
/>;
|
||||
}
|
||||
|
||||
const editModal = <Modal closeIcon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue