|
@@ -20,13 +20,13 @@ enum GeneratorStatus {
|
|
|
interface DeviceAreaState {
|
|
|
generatorStatus: GeneratorStatus;
|
|
|
exposureStatus: 'ready' | 'not_ready';
|
|
|
- tabletStatus: 'exposing' | 'ready' | 'error';
|
|
|
+ tabletStatus: 'exposing' | 'ready' | 'error' | 'not_ready';
|
|
|
}
|
|
|
|
|
|
const initialState: DeviceAreaState = {
|
|
|
generatorStatus: GeneratorStatus.GENERATOR_RAD_OFF, // Default to idle state
|
|
|
exposureStatus: 'not_ready',
|
|
|
- tabletStatus: 'ready',
|
|
|
+ tabletStatus: 'not_ready',
|
|
|
};
|
|
|
|
|
|
const deviceAreaSlice = createSlice({
|
|
@@ -44,7 +44,7 @@ const deviceAreaSlice = createSlice({
|
|
|
},
|
|
|
setTabletStatus: (
|
|
|
state,
|
|
|
- action: PayloadAction<'exposing' | 'ready' | 'error'>
|
|
|
+ action: PayloadAction<'exposing' | 'ready' | 'error' | 'not_ready'>
|
|
|
) => {
|
|
|
state.tabletStatus = action.payload;
|
|
|
},
|