[partial] #30: Add uninstall feature with reboot to handle WinFSP upgrades/downgrades
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {setApplicationReady} from '../actions/common_actions';
|
||||
import {
|
||||
notifyRebootRequired,
|
||||
setApplicationReady,
|
||||
} from '../actions/common_actions';
|
||||
|
||||
export const createCommonReducer = (platform, appPlatform, version) => {
|
||||
return createReducer({
|
||||
AppPlatform: appPlatform,
|
||||
AppReady: false,
|
||||
Platform: platform,
|
||||
RebootRequired: false,
|
||||
Version: version,
|
||||
}, {
|
||||
[setApplicationReady]: (state, action) => {
|
||||
@@ -13,6 +17,12 @@ export const createCommonReducer = (platform, appPlatform, version) => {
|
||||
...state,
|
||||
AppReady: action.payload,
|
||||
};
|
||||
}
|
||||
},
|
||||
[notifyRebootRequired]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
RebootRequired: action.payload,
|
||||
};
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user