Skip to content

Commit

Permalink
chore(ux): deselect connection when selecting system
Browse files Browse the repository at this point in the history
  • Loading branch information
updraft0 committed Jun 11, 2024
1 parent 2ac9226 commit 6551cd3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ class MapController(rds: ReferenceDataStore, val clock: Signal[Instant])(using O
case (MapAction.UpdateSignatures(systemId, replaceAll, scanned), _) =>
Some(MapRequest.UpdateSystemSignatures(systemId, replaceAll, scanned))
case (MapAction.Select(systemIdOpt), _) =>
selectedSystemId.set(systemIdOpt)
Var.set(
(selectedSystemId, systemIdOpt),
(selectedConnectionId, None)
)
None
case (MapAction.TogglePinned(systemId), allSystems) =>
allSystems.get(systemId).map(sys => MapRequest.UpdateSystem(systemId, isPinned = Some(!sys.system.isPinned)))
Expand Down

0 comments on commit 6551cd3

Please sign in to comment.