Added update status to reducer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user