#36: Add ability to select Linux distribution type if OS is unsupported - partial

This commit is contained in:
2019-08-28 18:58:43 -05:00
parent 0671a39809
commit 0105602a44
11 changed files with 194 additions and 38 deletions

View File

@@ -1,9 +1,10 @@
import {createReducer} from 'redux-starter-kit';
import {
displaySelectAppPlatform,
notifyRebootRequired,
setAllowMount,
setApplicationReady,
setLinuxAppPlatform,
SET_DISPLAY_SELECT_APPPLATFORM
} from '../actions/common_actions';
export const createCommonReducer = (platform, appPlatform, version) => {
@@ -16,7 +17,7 @@ export const createCommonReducer = (platform, appPlatform, version) => {
RebootRequired: false,
Version: version,
}, {
[displaySelectAppPlatform]: (state, action) => {
[SET_DISPLAY_SELECT_APPPLATFORM]: (state, action) => {
return {
...state,
DisplaySelectAppPlatform: action.payload,
@@ -34,6 +35,12 @@ export const createCommonReducer = (platform, appPlatform, version) => {
AppReady: action.payload,
};
},
[setLinuxAppPlatform]: (state, action) => {
return {
...state,
AppPlatform: action.payload,
}
},
[notifyRebootRequired]: (state, action) => {
return {
...state,