- updated camera friendly names and improve camera settings functionality
- bugfixes for plate sizing
This commit is contained in:
@@ -13,6 +13,8 @@ export const initialState = {
|
||||
catD: false,
|
||||
},
|
||||
hotlistFiles: [],
|
||||
cameraAFriendlyName: "Camera A",
|
||||
cameraBFriendlyName: "Camera B",
|
||||
};
|
||||
|
||||
export function reducer(state: NPEDSTATE, action: NPEDACTION) {
|
||||
@@ -68,6 +70,18 @@ export function reducer(state: NPEDSTATE, action: NPEDACTION) {
|
||||
...state,
|
||||
hotlistFiles: state.hotlistFiles.filter((hotlist) => hotlist.filename !== action.payload),
|
||||
};
|
||||
|
||||
case "UPDATE_FRIENDLYNAMEA":
|
||||
return {
|
||||
...state,
|
||||
cameraAFriendlyName: action.payload,
|
||||
};
|
||||
|
||||
case "UPDATE_FRIENDLYNAMEB":
|
||||
return {
|
||||
...state,
|
||||
cameraBFriendlyName: action.payload,
|
||||
};
|
||||
default:
|
||||
return { ...state };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user