Show stages only when in doing
This commit is contained in:
@@ -21,8 +21,4 @@ module BubblesHelper
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
def editable_bubble_stage?(bubble)
|
||||
!bubble.popped? && bubble.doing?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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? %>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user