🔧 Genericized AirDC++ settings

1. You can now enter your AirDC++ client settings in the settings menu and the UI will read from them
2. Hubs can also be selected for search
This commit is contained in:
2021-11-23 17:26:48 -08:00
parent 610038247f
commit 84f242184e
10 changed files with 180 additions and 113 deletions

View File

@@ -6,11 +6,11 @@ import {
import { SETTINGS_SERVICE_BASE_URI } from "../constants/endpoints";
export const saveSettings =
(settingsObject, airdcppUserSettings) => async (dispatch) => {
(settingsPayload, settingsObjectId?) => async (dispatch) => {
const result = await axios({
url: `${SETTINGS_SERVICE_BASE_URI}/saveSettings`,
method: "POST",
data: { settingsObject, airdcppUserSettings },
data: { settingsPayload, settingsObjectId },
});
console.log(result.data);
dispatch({