Partial import processing

This commit is contained in:
2020-06-16 11:26:09 -05:00
parent 5e6431d630
commit 38bb2855b6
12 changed files with 172 additions and 87 deletions

View File

@@ -1,6 +1,7 @@
import {createReducer} from '@reduxjs/toolkit';
import {
DISPLAY_CONFIRM_YES_NO,
NOTIFY_APPLICATION_BUSY,
notifyRebootRequired,
setAllowMount,
setApplicationReady,
@@ -11,6 +12,8 @@ import {
export const createCommonReducer = (platformInfo, version) => {
return createReducer({
AllowMount: false,
AppBusy: false,
AppBusyTransparent: false,
AppPlatform: platformInfo.AppPlatform,
AppReady: false,
DisplayConfirmYesNo: false,
@@ -51,6 +54,13 @@ export const createCommonReducer = (platformInfo, version) => {
AppPlatform: action.payload,
}
},
[NOTIFY_APPLICATION_BUSY]: (state, action) => {
return {
...state,
AppBusy: action.payload.busy,
AppBusyTransparent: action.payload.busy && action.payload.transparent,
};
},
[notifyRebootRequired]: (state, action) => {
return {
...state,