@@ -116,7 +116,7 @@ const {CollapsibleCheckHeader, collapsibleCheckHeaderKeys}= checkHeaderCtl;
116
116
const fldListAry = [ 'exposureSinceValue' , 'exposureLengthMin' , 'exposureLengthMax' ,
117
117
'exposureMin' , 'exposureMax' , 'exposureSinceOptions' , 'exposureRangeType' ] ;
118
118
119
- export function ExposureDurationSearch ( { initArgs, slotProps, useSIAv2} ) {
119
+ export function ExposureDurationSearch ( { initArgs, slotProps, useSIAv2, showLengthInput = true } ) {
120
120
const { getVal, makeFldObj} = useContext ( FieldGroupCtx ) ;
121
121
const { setConstraintFragment} = useContext ( ConstraintContext ) ;
122
122
const [ constraintResult , setConstraintResult ] = useState ( { } ) ;
@@ -157,7 +157,8 @@ export function ExposureDurationSearch({initArgs, slotProps,useSIAv2}) {
157
157
: < ExposureSince { ...{ initArgs, turnOnPanel, panelActive :checkHeaderCtl . isPanelActive ( ) ,
158
158
...slotProps ?. exposureSince } } />
159
159
}
160
- < ExposureLength { ...{ initArgs, turnOnPanel, panelActive :checkHeaderCtl . isPanelActive ( ) } } />
160
+ { showLengthInput &&
161
+ < ExposureLength { ...{ initArgs, turnOnPanel, panelActive : checkHeaderCtl . isPanelActive ( ) } } /> }
161
162
< DebugObsCore { ...{ constraintResult} } />
162
163
</ Stack >
163
164
</ ForceFieldGroupValid >
@@ -173,7 +174,8 @@ ExposureDurationSearch.propTypes = {
173
174
exposureRangeType : PropTypes . object ,
174
175
exposureTimeRange : PropTypes . object ,
175
176
exposureSince : PropTypes . object ,
176
- } )
177
+ } ) ,
178
+ showLengthInput : PropTypes . bool ,
177
179
} ;
178
180
179
181
0 commit comments