Don't show the engagement toggle on closed cards

This commit is contained in:
Jason Zimdars
2025-04-11 12:48:24 -05:00
parent df96ee80fa
commit 239b0a430d
+1 -1
View File
@@ -23,7 +23,7 @@
<%= link_to_home %>
<%= link_to_back fallback_path: cards_path(collection_id: @card.collection) %>
<% if @card.published? %>
<% if @card.published? && !@card.closed? %>
<div class="card__actions-container card__actions-container--top center border-radius" style="--card-color: <%= @card.color %>;">
<div class="btn__group flex full-width txt-uppercase">
<%= form_with url: card_engagement_path(@card), method: :delete, data: { controller: "form" } do |form| %>