[Refactoring] [Attempt to fix crash]
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {createReducer} from "redux-starter-kit";
|
||||
import {setApplicationReady} from "../actions/common_actions";
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {setApplicationReady} from '../actions/common_actions';
|
||||
|
||||
export const createCommonReducer = (platform, appPlatform, version) => {
|
||||
return createReducer({
|
||||
AppReady: false,
|
||||
AppPlatform: appPlatform,
|
||||
AppReady: false,
|
||||
Platform: platform,
|
||||
Version: version,
|
||||
}, {
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {setAllowDownload, SET_DOWNLOAD_BEGIN, setDownloadEnd, setDownloadProgress} from '../actions/download_actions';
|
||||
import {
|
||||
setAllowDownload,
|
||||
SET_DOWNLOAD_BEGIN,
|
||||
setDownloadEnd,
|
||||
setDownloadProgress
|
||||
} from '../actions/download_actions';
|
||||
|
||||
const defaultDownloadState = {
|
||||
DownloadActive: false,
|
||||
DownloadProgress: 0.0,
|
||||
DownloadingDependency: false,
|
||||
DownloadName: '',
|
||||
DownloadType: null,
|
||||
DownloadingRelease: false,
|
||||
DownloadingUpgrade: false,
|
||||
DownloadName: '',
|
||||
DownloadProgress: 0.0,
|
||||
DownloadResult: null,
|
||||
DownloadingUpgrade: false
|
||||
DownloadType: null,
|
||||
};
|
||||
|
||||
export const downloadReducer = createReducer({
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {CLEAR_ERROR, SET_ERROR_INFO} from '../actions/error_actions';
|
||||
import {
|
||||
CLEAR_ERROR,
|
||||
SET_ERROR_INFO
|
||||
} from '../actions/error_actions';
|
||||
|
||||
export const errorReducer = createReducer({
|
||||
DisplayError: false,
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {setInstallActive, setInstallComplete, setMissingDependencies} from '../actions/install_actions';
|
||||
import {
|
||||
setInstallActive,
|
||||
setInstallComplete,
|
||||
setMissingDependencies
|
||||
} from '../actions/install_actions';
|
||||
|
||||
export const installReducer = createReducer({
|
||||
InstallActive: false,
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import * as Constants from '../../constants';
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {displayConfiguration, SET_ALLOW_MOUNT, setAutoMountProcessed, setBusy, SET_MOUNT_STATE, SET_MOUNTED, SET_PROVIDER_STATE} from '../actions/mount_actions';
|
||||
import {
|
||||
displayConfiguration,
|
||||
SET_ALLOW_MOUNT,
|
||||
setAutoMountProcessed,
|
||||
setBusy,
|
||||
SET_MOUNT_STATE,
|
||||
SET_MOUNTED,
|
||||
SET_PROVIDER_STATE
|
||||
} from '../actions/mount_actions';
|
||||
|
||||
const providerState = Constants.PROVIDER_LIST.map(provider=> {
|
||||
return {
|
||||
|
||||
@@ -19,6 +19,7 @@ export const releaseVersionReducer = createReducer({
|
||||
Release: 2,
|
||||
ReleaseUpgradeAvailable: false,
|
||||
UpgradeAvailable: false,
|
||||
UpgradeData: null,
|
||||
UpgradeDismissed: false,
|
||||
Version: -1,
|
||||
VersionLookup: versionLookup,
|
||||
|
||||
Reference in New Issue
Block a user