Skip to content

Commit

Permalink
Fix multi dispense text display
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Aug 6, 2024
1 parent 139b612 commit b35dfac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/assets/localization/en/quick_transfer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"deleted_transfer": "Deleted quick transfer",
"destination": "Destination",
"destination_labware": "Destination labware",
"disabled": "Disabled",
"dispense_flow_rate": "Dispense flow rate",
"dispense_flow_rate_µL": "Dispense flow rate (µL/s)",
"dispense_settings": "Dispense Settings",
Expand Down Expand Up @@ -90,7 +91,8 @@
"pipette_currently_attached": "Quick transfer options depend on the pipettes currently attached to your robot.",
"pipette_path": "Pipette path",
"pipette_path_multi_aspirate": "Multi-aspirate",
"pipette_path_multi_dispense": "Multi-dispense, {{volume}} disposal volume, blowout into {{blowOutLocation}}",
"pipette_path_multi_dispense": "Multi-dispense",
"pipette_path_multi_dispense_volume_blowout": "Multi-dispense, {{volume}} disposal volume, blowout into {{blowOutLocation}}",
"pipette_path_single": "Single transfers",
"pre_wet_tip": "Pre-wet tip",
"quick_transfer": "Quick transfer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function QuickTransferAdvancedSettings(
} else if (state.path === 'multiAspirate') {
pipettePathValue = t('pipette_path_multi_aspirate')
} else if (state.path === 'multiDispense') {
pipettePathValue = t('pipette_path_multi_dispense', {
pipettePathValue = t('pipette_path_multi_dispense_volume_blowout', {
volume: state.disposalVolume,
blowOutLocation: getBlowoutValueCopy(),
})
Expand Down Expand Up @@ -299,7 +299,10 @@ export function QuickTransferAdvancedSettings(
{
option: 'dispense_blow_out',
copy: t('blow_out'),
value: i18n.format(getBlowoutValueCopy(), 'capitalize'),
value:
state.transferType === 'distribute'
? t('disabled')
: i18n.format(getBlowoutValueCopy(), 'capitalize'),
enabled: state.transferType !== 'distribute',
onClick: () => {
if (state.transferType === 'distribute') {
Expand Down

0 comments on commit b35dfac

Please sign in to comment.