diff --git a/demo/beamstop.xml b/demo/beamstop.xml index 3fd47819d..2487d28f4 100644 --- a/demo/beamstop.xml +++ b/demo/beamstop.xml @@ -1,5 +1,5 @@ beamstop - {"OUT": "OFF", "IN": "BEAM"} + {"IN": "BEAM", "OUT": "OFF"} True diff --git a/demo/mxcube-web/ui.yaml b/demo/mxcube-web/ui.yaml index 672b8bda8..cb164f485 100644 --- a/demo/mxcube-web/ui.yaml +++ b/demo/mxcube-web/ui.yaml @@ -100,9 +100,9 @@ beamline_setup: id: beamline_setup components: - label: Beamstop - attribute: beamstop + attribute: diffractometer.beamstop - label: Capillary - attribute: capillary + attribute: diffractometer.capillary - label: Fast Shutter attribute: fast_shutter - label: Safety shutter diff --git a/ui/src/components/MotorInput/BaseMotorInput.jsx b/ui/src/components/MotorInput/BaseMotorInput.jsx index fb801e6a6..6b85da13a 100644 --- a/ui/src/components/MotorInput/BaseMotorInput.jsx +++ b/ui/src/components/MotorInput/BaseMotorInput.jsx @@ -62,7 +62,7 @@ function BaseMotorInput(props) { state === HW_STATE.OFF; return ( -
+ -

Beamstop distance:

+
+

Beamstop distance:

, @@ -108,7 +102,7 @@ function BeamlineSetupContainer(props) { labelText={uiprop.label} pkey={key} value={beamline.hardwareObjects[key].value} - onSave={handleSetAttribute} + onSave={setAttribute} /> , ); @@ -164,7 +158,7 @@ function BeamlineSetupContainer(props) { format={uiprop.format} precision={uiprop.precision} suffix={uiprop.suffix} - onSave={(value) => handleSetAttribute(uiprop.attribute, value)} + onSave={(value) => setAttribute(uiprop.attribute, value)} onCancel={() => stopBeamlineAction(uiprop.attribute)} /> , @@ -268,7 +262,6 @@ function mapStateToProps(state) { function mapDispatchToProps(dispatch) { return { - sampleViewActions: bindActionCreators(sampleViewActions, dispatch), setAttribute: bindActionCreators(setAttribute, dispatch), sendCommand: bindActionCreators(sendCommand, dispatch), stopBeamlineAction: bindActionCreators(stopBeamlineAction, dispatch),