diff --git a/app/helpers/bubbles_helper.rb b/app/helpers/bubbles_helper.rb index 42e85cec7..22f319362 100644 --- a/app/helpers/bubbles_helper.rb +++ b/app/helpers/bubbles_helper.rb @@ -21,8 +21,4 @@ module BubblesHelper } end end - - def editable_bubble_stage?(bubble) - !bubble.popped? && bubble.doing? - end end diff --git a/app/views/bubbles/cards/_perma.html.erb b/app/views/bubbles/cards/_perma.html.erb index 07131b459..2bb771fd3 100644 --- a/app/views/bubbles/cards/_perma.html.erb +++ b/app/views/bubbles/cards/_perma.html.erb @@ -27,8 +27,10 @@ - <%= 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? %> diff --git a/app/views/bubbles/cards/_preview.html.erb b/app/views/bubbles/cards/_preview.html.erb index 35436a524..f4e621997 100644 --- a/app/views/bubbles/cards/_preview.html.erb +++ b/app/views/bubbles/cards/_preview.html.erb @@ -12,13 +12,9 @@

<%= bubble_title(bubble) %>

- - <%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "card__link" do %> - <%= bubble_title(bubble) %> - <% end %> - <%= render "bubbles/stagings/stages", bubble: bubble %> + <%= render "bubbles/stagings/stages", bubble: bubble if bubble.doing? %>