Skip to content

Commit

Permalink
Fix delete button on pets index
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Oct 5, 2023
1 parent d60db19 commit a7173ec
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions app/views/organizations/pets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,9 @@
<i class="fe fe-pause dropdown-item-icon"></i>Pause applications
<% end %>
<% end %>
<%= link_to t('general.delete'), url: pet_path(pet), class: 'dropdown-item',
data:
{
turbo_method: :delete,
turbo_confirm: t('.are_you_sure_delete')
} do %>
<i class="fe fe-trash dropdown-item-icon"></i>Delete
<% end %>
<%= button_to pet, method: :delete, class: 'dropdown-item', data: { turbo_confirm: t('.are_you_sure_delete') } do %>
<i class="fe fe-trash dropdown-item-icon"></i>Delete
<% end %>
</div>
</div>
</td>
Expand Down

0 comments on commit a7173ec

Please sign in to comment.