1
0

Fixed importing Foods with QuantityValue

Fixed double flash when not followed by request
Added Food#destroy error reporting
Simplified prepare_meals with no ingredients
Renamed scope on item with subitems: subitems -> with_subitems
This commit is contained in:
cryptogopher
2020-05-20 23:33:34 +02:00
parent fa9c329a81
commit a416e1ce9b
13 changed files with 29 additions and 17 deletions

View File

@@ -1,3 +1,5 @@
<% if @food.destroyed? %>
$('tr[id=food-<%= @food.id %>]').nextUntil('tr.primary').addBack().remove();
<% else %>
$('#content').prepend('<%= j error_messages_for @food %>');
<% end %>