IO-766 Added Disk Scan for estimates.

This commit is contained in:
Patrick Fic
2021-03-17 16:56:12 -07:00
parent 674dc5c83f
commit c27f66fdb3
15 changed files with 286 additions and 30851 deletions

View File

@@ -43,3 +43,8 @@ export const setJobReadOnly = (bool) => ({
type: ApplicationActionTypes.SET_JOB_READONLY,
payload: bool,
});
export const setPartnerVersion = (version) => ({
type: ApplicationActionTypes.SET_PARTNER_VERSION,
payload: version,
});

View File

@@ -11,6 +11,7 @@ const INITIAL_STATE = {
error: null,
},
jobReadOnly: false,
partnerVersion: null,
};
const applicationReducer = (state = INITIAL_STATE, action) => {
@@ -67,6 +68,9 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
case ApplicationActionTypes.SET_JOB_READONLY:
return { ...state, jobReadOnly: action.payload };
case ApplicationActionTypes.SET_PARTNER_VERSION:
return { ...state, partnerVersion: action.payload };
default:
return state;
}

View File

@@ -21,6 +21,10 @@ export const selectScheduleLoad = createSelector(
[selectApplication],
(application) => application.scheduleLoad.load
);
export const selectPartnerVersion = createSelector(
[selectApplication],
(application) => application.partnerVersion
);
export const selectScheduleLoadCalculating = createSelector(
[selectApplication],

View File

@@ -8,5 +8,6 @@ const ApplicationActionTypes = {
ADD_RECENT_ITEM: "ADD_RECENT_ITEM",
SET_SELECTED_HEADER: "SET_SELECTED_HEADER",
SET_JOB_READONLY: "SET_JOB_READONLY",
SET_PARTNER_VERSION: "SET_PARTNER_VERSION",
};
export default ApplicationActionTypes;