Show stages only when in doing

This commit is contained in:
Jorge Manrubia
2025-04-04 17:49:36 +02:00
parent a41ee80e91
commit c33d95c47c
3 changed files with 5 additions and 11 deletions
-4
View File
@@ -21,8 +21,4 @@ module BubblesHelper
}
end
end
def editable_bubble_stage?(bubble)
!bubble.popped? && bubble.doing?
end
end
+4 -2
View File
@@ -27,8 +27,10 @@
</h1>
</div>
<%= turbo_frame_tag dom_id(@bubble, :stages) do %>
<%= render "bubbles/stagings/stages", bubble: bubble %>
<% if bubble.doing? %>
<%= turbo_frame_tag dom_id(@bubble, :stages) do %>
<%= render "bubbles/stagings/stages", bubble: bubble %>
<% end %>
<% end %>
<% if bubble.considering? %>
+1 -5
View File
@@ -12,13 +12,9 @@
<h1 class="card__title">
<span class="card__title-link overflow-line-clamp"><%= bubble_title(bubble) %></span>
</h1>
<%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "card__link" do %>
<span class="for-screen-reader"><%= bubble_title(bubble) %></span>
<% end %>
</div>
<%= render "bubbles/stagings/stages", bubble: bubble %>
<%= render "bubbles/stagings/stages", bubble: bubble if bubble.doing? %>
</div>
<footer class="card__footer full-width flex align-start gap">