webpack/ForemanTasks/Components/TaskDetails/TaskDetailsReducer.js in foreman-tasks-1.1.3 vs webpack/ForemanTasks/Components/TaskDetails/TaskDetailsReducer.js in foreman-tasks-1.2.0
- old
+ new
@@ -2,12 +2,10 @@
import {
FOREMAN_TASK_DETAILS_FETCH_TASK_REQUEST,
FOREMAN_TASK_DETAILS_FETCH_TASK_SUCCESS,
FOREMAN_TASK_DETAILS_STOP_POLLING,
FOREMAN_TASK_DETAILS_START_POLLING,
- FOREMAN_TASK_DETAILS_TOGGLE_UNLOCK_MODAL,
- FOREMAN_TASK_DETAILS_TOGGLE_FORCE_UNLOCK_MODAL,
} from './TaskDetailsConstants';
const initialState = Immutable({});
export default (state = initialState, action) => {
@@ -32,13 +30,9 @@
case FOREMAN_TASK_DETAILS_STOP_POLLING:
return state.merge({ taskReload: false, timeoutId: null });
case FOREMAN_TASK_DETAILS_START_POLLING:
clearTimeout(state.timeoutId);
return state.merge({ taskReload: true, timeoutId: payload.timeoutId });
- case FOREMAN_TASK_DETAILS_TOGGLE_UNLOCK_MODAL:
- return state.set('showUnlockModal', !state.showUnlockModal);
- case FOREMAN_TASK_DETAILS_TOGGLE_FORCE_UNLOCK_MODAL:
- return state.set('showForceUnlockModal', !state.showForceUnlockModal);
default:
return state;
}
};