#36: Add ability to select Linux distribution type if OS is unsupported - partial
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user