OZ10 / Stropping

0 stars 0 forks source link

Edit Recipe: Add option to remove ingredients #16

Closed OZ10 closed 8 years ago

OZ10 commented 8 years ago

Each ingredient should have a delete button

OZ10 commented 8 years ago

Ingredients can now be deleted from recipes. There is a bug where the ingredient will still be deleted even if the user cancels the recipe edit.

OZ10 commented 8 years ago

This can be fixed by removing the line of code that deletes the recipe's ingredient from the database. The recipe's ingredient only needs to be removed from the adapter's list of ingredient. This will remove the ingredient from the view. When the recipe is saved all of it's ingredients are removed and re-added based on the adapter's list.

OZ10 commented 8 years ago

Fixed as per comment above