#34: Allow cancelling/closing dependency installation if version count > 1
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user