mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 03:16:22 -05:00
Moving config api endpoints to their own file..
This commit is contained in:
parent
fc084e2421
commit
376850ceeb
10 changed files with 190 additions and 139 deletions
|
|
@ -43,7 +43,7 @@ import {FileRowTagIcon, FilesView} from "./Files";
|
|||
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
|
||||
import Icon from "semantic-ui-react/dist/commonjs/elements/Icon";
|
||||
import {Button, Card, Header, Loader, Placeholder, Popup, Segment, Statistic, StatisticGroup} from "./Theme";
|
||||
import {deleteVideos, fetchVideoDownloaderConfig, postVideoFileFormat, saveVideoDownloaderConfig} from "../api";
|
||||
import {deleteVideos, fetchVideoDownloaderConfig, postVideoFileFormat, updateVideoDownloaderConfig} from "../api";
|
||||
import {Media, QueryContext, ThemeContext} from "../contexts/contexts";
|
||||
import _ from "lodash";
|
||||
import {defaultFileOrder, defaultSearchOrder} from "./Vars";
|
||||
|
|
@ -264,7 +264,7 @@ function VideosSettings() {
|
|||
}
|
||||
|
||||
const submitter = async () => {
|
||||
return await saveVideoDownloaderConfig(form.formData);
|
||||
return await updateVideoDownloaderConfig(form.formData);
|
||||
}
|
||||
|
||||
const form = useForm({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue