Skip to content

Commit e5cab7e

Browse files
IRSA-6575: Changes in Time Panel of LVF search form
1 parent 8b24020 commit e5cab7e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/firefly/js/ui/tap/ObsCoreExposureDuration.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const {CollapsibleCheckHeader, collapsibleCheckHeaderKeys}= checkHeaderCtl;
116116
const fldListAry= ['exposureSinceValue', 'exposureLengthMin', 'exposureLengthMax',
117117
'exposureMin', 'exposureMax', 'exposureSinceOptions', 'exposureRangeType'];
118118

119-
export function ExposureDurationSearch({initArgs, slotProps,useSIAv2}) {
119+
export function ExposureDurationSearch({initArgs, slotProps,useSIAv2, showLengthInput=true}) {
120120
const {getVal,makeFldObj}= useContext(FieldGroupCtx);
121121
const {setConstraintFragment}= useContext(ConstraintContext);
122122
const [constraintResult, setConstraintResult] = useState({});
@@ -157,7 +157,8 @@ export function ExposureDurationSearch({initArgs, slotProps,useSIAv2}) {
157157
: <ExposureSince {...{initArgs, turnOnPanel, panelActive:checkHeaderCtl.isPanelActive(),
158158
...slotProps?.exposureSince}} />
159159
}
160-
<ExposureLength {...{initArgs, turnOnPanel, panelActive:checkHeaderCtl.isPanelActive()}}/>
160+
{showLengthInput &&
161+
<ExposureLength {...{initArgs, turnOnPanel, panelActive: checkHeaderCtl.isPanelActive()}}/>}
161162
<DebugObsCore {...{constraintResult}}/>
162163
</Stack>
163164
</ForceFieldGroupValid>
@@ -173,7 +174,8 @@ ExposureDurationSearch.propTypes = {
173174
exposureRangeType: PropTypes.object,
174175
exposureTimeRange: PropTypes.object,
175176
exposureSince: PropTypes.object,
176-
})
177+
}),
178+
showLengthInput: PropTypes.bool,
177179
};
178180

179181

0 commit comments

Comments
 (0)