Don't show the engagement toggle on closed cards
This commit is contained in:
@@ -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| %>
|
||||
|
||||
Reference in New Issue
Block a user