Added update status to reducer.

This commit is contained in:
Patrick Fic
2020-10-22 21:12:21 -07:00
parent 658f45b476
commit 6929da6679
7 changed files with 40 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ const INITIAL_STATE = {
selectedJobId: null,
selectedJobTargetPc: 0,
settings: {},
updateAvailable: false,
};
const { ipcRenderer } = window;
@@ -60,7 +61,8 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
return { ...state, selectedJobId: action.payload };
case ApplicationActionTypes.SET_SETTINGS:
return { ...state, settings: { ...state.settings, ...action.payload } };
case ApplicationActionTypes.SET_UPDATE_AVAILABLE:
return { ...state, updateAvailable: action.payload };
default:
return state;
}