[partial] #30: Add uninstall feature with reboot to handle WinFSP upgrades/downgrades

This commit is contained in:
2019-08-13 14:06:50 -05:00
parent 9f45b0f03f
commit fa130c7dd1
10 changed files with 98 additions and 14 deletions

View File

@@ -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,
};
},
});
};