44650cc36e
Also, add a cache around the dropdown keyed on [bubble, bucket].
17 lines
794 B
Plaintext
17 lines
794 B
Plaintext
<%= turbo_frame_tag bubble, :assignees do %>
|
|
<div class="flex">
|
|
<% bubble.assignees.each do |assignee| %>
|
|
<%= avatar_tag assignee, loading: :lazy, class: "avatar" %>
|
|
<% end %>
|
|
|
|
<div class="position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
|
<button class="btn card__hide-on-index <%= bubble.creating? || bubble.drafted? ? "fill-highlight" : "fill-transparent" %>" data-action="click->dialog#open:stop">
|
|
<%= image_tag "add.svg", aria: { hidden: true }, size: 24 %>
|
|
<span class="for-screen-reader">Assign</span>
|
|
</button>
|
|
|
|
<%= turbo_frame_tag bubble, :assignment, src: new_bucket_bubble_assignment_toggle_path(bubble.bucket, bubble) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|