1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-07 11:55:17 +02:00

Created separate settings for Docker

This commit is contained in:
Paweł Malak 2021-11-10 16:45:30 +01:00
parent 5805c708d2
commit 1571981252
11 changed files with 167 additions and 83 deletions

View file

@ -11,6 +11,7 @@ import axios from 'axios';
import {
ApiResponse,
Config,
DockerSettingsForm,
OtherSettingsForm,
Query,
SearchForm,
@ -49,7 +50,9 @@ export const getConfig = () => async (dispatch: Dispatch<GetConfigAction>) => {
};
export const updateConfig =
(formData: WeatherForm | OtherSettingsForm | SearchForm) =>
(
formData: WeatherForm | OtherSettingsForm | SearchForm | DockerSettingsForm
) =>
async (dispatch: Dispatch<UpdateConfigAction>) => {
try {
const res = await axios.put<ApiResponse<Config>>('/api/config', formData);