Skip to content

Commit

Permalink
Merge pull request #7790 from NBKelly/close-card-menu-when-ending-turn
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Oct 4, 2024
2 parents 1f08bb4 + af69374 commit 77b0e36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cljs/nr/gameboard/board.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1699,10 +1699,12 @@
(defn basic-actions [{:keys [side active-player end-turn runner-phase-12 corp-phase-12 me]}]
[:div.panel.blue-shade
(if (= (keyword @active-player) side)
;; !!here

This comment has been minimized.

Copy link
@NBKelly

NBKelly Oct 6, 2024

Collaborator

reminder to myself to delete this

(when (and (not (or @runner-phase-12 @corp-phase-12))
(zero? (:click @me))
(not @end-turn))
[:button {:on-click #(send-command "end-turn")}
[:button {:on-click #(do (close-card-menu)
(send-command "end-turn"))}
(tr [:game.end-turn "End Turn"])])
(when @end-turn
[:button {:on-click #(do
Expand Down Expand Up @@ -1997,6 +1999,7 @@
(zero? clicks)
(not @end-turn))
(do (send-command "end-turn")
(close-card-menu)
(.stopPropagation e))
;; gain clicks/mandatory draw
(and (= active-player-kw @side)
Expand Down

0 comments on commit 77b0e36

Please sign in to comment.