Implement in_transfer hashes toggle in plates
This commit is contained in:
		
							parent
							
								
									4937d4ad28
								
							
						
					
					
						commit
						056688c4ec
					
				| 
						 | 
					@ -123,7 +123,7 @@ pub fn DestinationPlate(props: &DestinationPlateProps) -> Html {
 | 
				
			||||||
                <DestPlateCell i={i} j={j}
 | 
					                <DestPlateCell i={i} j={j}
 | 
				
			||||||
                selected={super::source_plate::in_rect(*m_start_handle.clone(), *m_end_handle.clone(), (i,j))}
 | 
					                selected={super::source_plate::in_rect(*m_start_handle.clone(), *m_end_handle.clone(), (i,j))}
 | 
				
			||||||
                mouse={mouse_callback.clone()}
 | 
					                mouse={mouse_callback.clone()}
 | 
				
			||||||
                in_transfer={destination_wells.contains(&(i,j))}
 | 
					                in_transfer={destination_wells.contains(&(i,j)) && main_state.preferences.in_transfer_hashes}
 | 
				
			||||||
                color={transfer_map.get(&(i,j))
 | 
					                color={transfer_map.get(&(i,j))
 | 
				
			||||||
                    .and_then(|t| t.last())
 | 
					                    .and_then(|t| t.last())
 | 
				
			||||||
                    .map(|t| PALETTE.get_ordered(t.get_uuid(), &ordered_ids))
 | 
					                    .map(|t| PALETTE.get_ordered(t.get_uuid(), &ordered_ids))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -127,7 +127,7 @@ pub fn SourcePlate(props: &SourcePlateProps) -> Html {
 | 
				
			||||||
                        <SourcePlateCell i={i} j={j}
 | 
					                        <SourcePlateCell i={i} j={j}
 | 
				
			||||||
                        selected={in_rect(*m_start_handle.clone(), *m_end_handle.clone(), (i,j))}
 | 
					                        selected={in_rect(*m_start_handle.clone(), *m_end_handle.clone(), (i,j))}
 | 
				
			||||||
                        mouse={mouse_callback.clone()}
 | 
					                        mouse={mouse_callback.clone()}
 | 
				
			||||||
                        in_transfer={source_wells.contains(&(i,j))}
 | 
					                        in_transfer={source_wells.contains(&(i,j)) && main_state.preferences.in_transfer_hashes}
 | 
				
			||||||
                        color={transfer_map.get(&(i,j))
 | 
					                        color={transfer_map.get(&(i,j))
 | 
				
			||||||
                            .and_then(|t| t.last())
 | 
					                            .and_then(|t| t.last())
 | 
				
			||||||
                            .map(|t| PALETTE.get_ordered(t.get_uuid(), &ordered_ids))
 | 
					                            .map(|t| PALETTE.get_ordered(t.get_uuid(), &ordered_ids))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue