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:
parent
5805c708d2
commit
1571981252
11 changed files with 167 additions and 83 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue