Refactor dialogs
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
|
||||
import {
|
||||
DISPLAY_CONFIRM_YES_NO,
|
||||
confirmYesNoAction,
|
||||
NOTIFY_APPLICATION_BUSY,
|
||||
notifyRebootRequired,
|
||||
SET_DISPLAY_SELECT_APPPLATFORM,
|
||||
@@ -26,11 +25,12 @@ export const createCommonReducer = (platformInfo, version) => {
|
||||
Version: version,
|
||||
},
|
||||
{
|
||||
[DISPLAY_CONFIRM_YES_NO]: (state, action) => {
|
||||
[confirmYesNoAction.action_type]: (state, action) => {
|
||||
return {
|
||||
...state,
|
||||
DisplayConfirmYesNo: action.payload.show,
|
||||
ConfirmTitle: action.payload.show ? action.payload.title : null,
|
||||
DisplayConfirmYesNo: action.payload.display,
|
||||
ConfirmTitle:
|
||||
action.payload.display && action.payload.data ? action.payload.data.title : null,
|
||||
};
|
||||
},
|
||||
[SET_DISPLAY_SELECT_APPPLATFORM]: (state, action) => {
|
||||
|
||||
Reference in New Issue
Block a user