#34: Allow cancelling/closing dependency installation if version count > 1
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {
|
||||
notifyRebootRequired,
|
||||
setAllowMount,
|
||||
setApplicationReady,
|
||||
} from '../actions/common_actions';
|
||||
|
||||
export const createCommonReducer = (platform, appPlatform, version) => {
|
||||
return createReducer({
|
||||
AllowMount: false,
|
||||
AppPlatform: appPlatform,
|
||||
AppReady: false,
|
||||
Platform: platform,
|
||||
RebootRequired: false,
|
||||
Version: version,
|
||||
}, {
|
||||
[setAllowMount]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
AllowMount: action.payload,
|
||||
}
|
||||
},
|
||||
[setApplicationReady]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {
|
||||
setDismissDependencies,
|
||||
setInstallActive,
|
||||
setInstallComplete,
|
||||
setMissingDependencies
|
||||
} from '../actions/install_actions';
|
||||
|
||||
export const installReducer = createReducer({
|
||||
DismissDependencies: false,
|
||||
InstallActive: false,
|
||||
InstallResult: null,
|
||||
InstallType: null,
|
||||
MissingDependencies: [],
|
||||
}, {
|
||||
[setDismissDependencies]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
DismissDependencies: action.payload,
|
||||
}
|
||||
},
|
||||
[setInstallActive]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
|
||||
@@ -14,6 +14,7 @@ const versionLookup = Constants.RELEASE_TYPES.map(k=> {
|
||||
});
|
||||
|
||||
export const releaseVersionReducer = createReducer({
|
||||
AllowDismissDependencies: false,
|
||||
InstalledVersion: 'none',
|
||||
LocationsLookup: {},
|
||||
Release: 0,
|
||||
@@ -35,13 +36,19 @@ export const releaseVersionReducer = createReducer({
|
||||
UpgradeVersion: null,
|
||||
};
|
||||
},
|
||||
[Actions.SET_ACTIVE_RELEASE]: (state, action) => {
|
||||
[Actions.NOTIFY_ACTIVE_RELEASE]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
Release: action.payload.release,
|
||||
Version: action.payload.version
|
||||
};
|
||||
},
|
||||
[Actions.setAllowDismissDependencies]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
AllowDismissDependencies: action.payload,
|
||||
};
|
||||
},
|
||||
[Actions.setDismissUIUpgrade]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user