⚙️Settings-driven AirDC++ configuration first draft
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
SETTINGS_CALL_FAILED,
|
||||
SETTINGS_OBJECT_FETCHED,
|
||||
SETTINGS_OBJECT_DELETED,
|
||||
SETTINGS_CALL_IN_PROGRESS,
|
||||
} from "../constants/action-types";
|
||||
const initialState = {
|
||||
@@ -23,6 +24,13 @@ function settingsReducer(state = initialState, action) {
|
||||
inProgress: false,
|
||||
};
|
||||
|
||||
case SETTINGS_OBJECT_DELETED:
|
||||
return {
|
||||
...state,
|
||||
data: action.data,
|
||||
inProgress: false,
|
||||
};
|
||||
|
||||
default:
|
||||
return { ...state };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user