chore(alerts): time machine is two words :)

pull/14988/head
Andrew Watkins 2019-09-05 15:08:27 -07:00
parent 3fd68bf88f
commit 55b2f78be6
2 changed files with 8 additions and 8 deletions

View File

@ -611,7 +611,7 @@ export const setXAxisLabel = (xAxisLabel: string): SetXAxisLabelAction => ({
})
export const setCheckStatus = (checkStatus: RemoteDataState) => ({
type: 'SET_TIMEMACHINE_CHECK_STATUS' as 'SET_TIMEMACHINE_CHECK_STATUS',
type: 'SET_TIME_MACHINE_CHECK_STATUS' as 'SET_TIME_MACHINE_CHECK_STATUS',
payload: {checkStatus},
})
@ -619,17 +619,17 @@ export const setTimeMachineCheck = (
checkStatus: RemoteDataState,
check: Partial<Check>
) => ({
type: 'SET_TIMEMACHINE_CHECK' as 'SET_TIMEMACHINE_CHECK',
type: 'SET_TIME_MACHINE_CHECK' as 'SET_TIME_MACHINE_CHECK',
payload: {checkStatus, check},
})
export const updateTimeMachineCheck = (checkUpdate: Partial<Check>) => ({
type: 'UPDATE_TIMEMACHINE_CHECK' as 'UPDATE_TIMEMACHINE_CHECK',
type: 'UPDATE_TIME_MACHINE_CHECK' as 'UPDATE_TIME_MACHINE_CHECK',
payload: {checkUpdate},
})
export const changeCheckType = (toType: CheckType) => ({
type: 'CHANGE_TIMEMACHINE_CHECK_TYPE' as 'CHANGE_TIMEMACHINE_CHECK_TYPE',
type: 'CHANGE_TIME_MACHINE_CHECK_TYPE' as 'CHANGE_TIME_MACHINE_CHECK_TYPE',
payload: {toType},
})

View File

@ -829,20 +829,20 @@ export const timeMachineReducer = (
})
}
case 'SET_TIMEMACHINE_CHECK_STATUS': {
case 'SET_TIME_MACHINE_CHECK_STATUS': {
const {checkStatus} = action.payload
return {...state, alerting: {...state.alerting, checkStatus}}
}
case 'SET_TIMEMACHINE_CHECK':
case 'SET_TIME_MACHINE_CHECK':
const alerting = {
check: action.payload.check,
checkStatus: action.payload.checkStatus,
}
return {...state, alerting}
case 'UPDATE_TIMEMACHINE_CHECK':
case 'UPDATE_TIME_MACHINE_CHECK':
return produce(state, draftState => {
draftState.alerting.check = {
...draftState.alerting.check,
@ -862,7 +862,7 @@ export const timeMachineReducer = (
}
})
case 'CHANGE_TIMEMACHINE_CHECK_TYPE':
case 'CHANGE_TIME_MACHINE_CHECK_TYPE':
return produce(state, draftState => {
const exCheck = draftState.alerting.check