Skip to content

Commit

Permalink
Fix Disassociate button by using button_to
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Sep 20, 2024
1 parent fb81c4d commit 000c645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/efforts/_efforts_list_person.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<td><%= l(effort.event.scheduled_start_time.to_date, format: :full_with_weekday) %></td>
<td class="text-end"><%= text_with_status_indicator(effort.finish_status, effort.data_status, data_type: :effort_time_data) %></td>
<% if current_user&.admin? %>
<td class="text-end"><%= link_to "Disassociate",
<td class="text-end"><%= button_to "Disassociate",
effort_path(effort,
effort: { person_id: nil },
button: :disassociate,
Expand Down

0 comments on commit 000c645

Please sign in to comment.