Skip to content

Commit

Permalink
fix(app): add prop so run setup pipette flows are strung together (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Feb 9, 2024
1 parent a3428ad commit ce940e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
NINETY_SIX_CHANNEL,
PipetteName,
SINGLE_MOUNT_PIPETTES,
LoadedPipette,
} from '@opentrons/shared-data'

import { SmallButton } from '../../atoms/buttons'
Expand Down Expand Up @@ -49,6 +50,7 @@ interface ProtocolInstrumentMountItemProps {
attachedInstrument: InstrumentData | null
speccedName: PipetteName | GripperModel
instrumentsRefetch?: () => void
pipetteInfo?: LoadedPipette[]
}
export function ProtocolInstrumentMountItem(
props: ProtocolInstrumentMountItemProps
Expand Down Expand Up @@ -172,6 +174,7 @@ export function ProtocolInstrumentMountItem(
closeFlow={() => setShowPipetteWizardFlow(false)}
selectedPipette={selectedPipette}
mount={mount as Mount}
pipetteInfo={props.pipetteInfo}
onComplete={props.instrumentsRefetch}
/>
) : null}
Expand Down
3 changes: 3 additions & 0 deletions app/src/organisms/PipetteWizardFlows/MountingPlate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { COLORS, SPACING } from '@opentrons/components'
import { StyledText } from '../../atoms/text'
import { SimpleWizardBody } from '../../molecules/SimpleWizardBody'
import { GenericWizardTile } from '../../molecules/GenericWizardTile'
import { InProgressModal } from '../../molecules/InProgressModal/InProgressModal'
import { getPipetteAnimations96 } from './utils'
import { BODY_STYLE, FLOWS, SECTIONS } from './constants'
import type { PipetteWizardStepProps } from './types'
Expand All @@ -13,6 +14,7 @@ export const MountingPlate = (
props: PipetteWizardStepProps
): JSX.Element | null => {
const {
isRobotMoving,
goBack,
proceed,
flowType,
Expand Down Expand Up @@ -46,6 +48,7 @@ export const MountingPlate = (
})
}

if (isRobotMoving) return <InProgressModal description={t('stand_back')} />
return errorMessage ? (
<SimpleWizardBody
iconColor={COLORS.red50}
Expand Down
1 change: 1 addition & 0 deletions app/src/organisms/ProtocolSetupInstruments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function ProtocolSetupInstruments({
speccedName={loadedPipette.pipetteName}
attachedInstrument={attachedPipetteMatch}
instrumentsRefetch={refetch}
pipetteInfo={mostRecentAnalysis?.pipettes}
/>
)
})}
Expand Down

0 comments on commit ce940e8

Please sign in to comment.