feature/IO-3255-simplified-parts-management -Checkpoint
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -104,6 +104,11 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
|
||||
alerts: newAlertsMap
|
||||
};
|
||||
}
|
||||
case ApplicationActionTypes.PARTS_ENTRY:
|
||||
return {
|
||||
...state,
|
||||
isPartsEntry: action.payload
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user