feature/IO-3255-simplified-parts-management -Checkpoint

This commit is contained in:
Dave Richer
2025-07-22 12:20:59 -04:00
parent 0ac9bbd97c
commit 6b5ad3dafa
6 changed files with 35 additions and 13 deletions

View File

@@ -77,3 +77,8 @@ export const setWssStatus = (status) => ({
type: ApplicationActionTypes.SET_WSS_STATUS,
payload: status
});
export const setIsPartsEntry = (isParts) => ({
type: ApplicationActionTypes.PARTS_ENTRY,
payload: isParts
});

View File

@@ -104,6 +104,11 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
alerts: newAlertsMap
};
}
case ApplicationActionTypes.PARTS_ENTRY:
return {
...state,
isPartsEntry: action.payload
};
default:
return state;
}

View File

@@ -24,3 +24,4 @@ export const selectProblemJobs = createSelector([selectApplication], (applicatio
export const selectUpdateAvailable = createSelector([selectApplication], (application) => application.updateAvailable);
export const selectWssStatus = createSelector([selectApplication], (application) => application.wssStatus);
export const selectAlerts = createSelector([selectApplication], (application) => application.alerts);
export const selectIsPartsEntry = createSelector([selectApplication], (application) => application.isPartsEntry);

View File

@@ -14,6 +14,7 @@ const ApplicationActionTypes = {
SET_PROBLEM_JOBS: "SET_PROBLEM_JOBS",
SET_UPDATE_AVAILABLE: "SET_UPDATE_AVAILABLE",
SET_WSS_STATUS: "SET_WSS_STATUS",
ADD_ALERTS: "ADD_ALERTS"
ADD_ALERTS: "ADD_ALERTS",
PARTS_ENTRY: "PARTS_ENTRY"
};
export default ApplicationActionTypes;