Skip to content

Commit

Permalink
fix(connections): connection in progress view was preventing connecti…
Browse files Browse the repository at this point in the history
…ons from being select - set it to not display when stopped
  • Loading branch information
updraft0 committed Jun 21, 2024
1 parent 6b060a0 commit 0d395d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/main/css/views/map-connection.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ svg path.connector-path {
svg g.wormhole-connection {
pointer-events: bounding-box;

&.stopped {
display: none;
}

& text.connection-size {
fill: $gray-lightest;
stroke: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ class ConnectionInProgressView(

override def view = g(
cls := "connection-in-progress",
onMountBind(ctx =>
cls("stopped") <-- state.signal(using ctx.owner).map {
case MapNewConnectionState.Stopped => true
case _ => false
},
),
cls := "wormhole-connection",
children <-- state.rawSignal
.map {
Expand Down

0 comments on commit 0d395d5

Please sign in to comment.