Hotkey m to toggle assignment to self
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<ul class="popup__list" data-filter-target="list">
|
||||
<%= render "user", card: @card, user: Current.user, user_label: "Me" do %>
|
||||
<span class="visually-hidden"><%= Current.user.name %></span>
|
||||
<kbd class="txt-xx-small hide-on-touch">m</kbd>
|
||||
<% end %>
|
||||
<%= render collection: @assigned_to, partial: "user", locals: { card: @card } %>
|
||||
<% @users.each do |user| %>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<%= button_to "Assign to me", card_assignments_path(card, params: { assignee_id: Current.user.id }), method: :post, data: {controller: "hotkey", action: "keydown.m@document->hotkey#click" }, hidden: true %>
|
||||
|
||||
<dialog class="popup panel flex-column align-start gap-half fill-white shadow" data-dialog-target="dialog" data-action="turbo:before-morph-attribute->dialog#preventCloseOnMorphing turbo:submit-end->dialog#close">
|
||||
<%= yield %>
|
||||
</dialog>
|
||||
|
||||
Reference in New Issue
Block a user