diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index be81fba..f6085d9 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -90,7 +90,6 @@ export const getComicBooks = (options) => async (dispatch) => { }, }) .then((response) => { - console.log(response); dispatch({ type: IMS_RECENT_COMICS_FETCHED, data: response.data, @@ -145,7 +144,6 @@ export const fetchVolumeGroups = () => (dispatch) => { method: "GET", }) .then((data) => { - console.log(data); dispatch({ type: IMS_COMIC_BOOK_GROUPS_FETCHED, data, diff --git a/src/client/actions/settings.actions.tsx b/src/client/actions/settings.actions.tsx index e69de29..d7b8c60 100644 --- a/src/client/actions/settings.actions.tsx +++ b/src/client/actions/settings.actions.tsx @@ -0,0 +1,13 @@ +import axios from "axios"; +import { IExtractionOptions } from "threetwo-ui-typings"; +import {} from "../constants/action-types"; +import { SETTINGS_SERVICE_BASE_URI } from "../constants/endpoints"; + +export const saveSettings = (settingsObject) => async (dispatch) => { + const result = await axios({ + url: `${SETTINGS_SERVICE_BASE_URI}/saveSettings`, + method: "POST", + data: settingsObject, + }); + console.log(result); +}; diff --git a/src/client/components/AirDCPPConnectionForm.tsx b/src/client/components/AirDCPPConnectionForm.tsx index 888b2bd..02a7bd7 100644 --- a/src/client/components/AirDCPPConnectionForm.tsx +++ b/src/client/components/AirDCPPConnectionForm.tsx @@ -11,13 +11,13 @@ export const AirDCPPConnectionForm = (): ReactElement => { validate={validate} render={({ handleSubmit }) => (