Skip to content

Commit

Permalink
confirm_ingredients_page updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kat9897 committed Jan 28, 2024
1 parent ad066fe commit c279109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file modified app/img/compressed_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions app/pages/confirm_ingredients_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
</center>
|>
<|card card-bg|
Confirm <|{num_ingred}|text|> ingredient(s):\n
<|Confirmed {num_ingred} ingredient(s):|>\n
<|{ingredients[0]}|>
|>
<|Confirm|button|on_action=confirmed_ingred|>
<|Confirm|button|class_name=success|on_action=confirmed_ingred|>
<|Delete|button|class_name=error|on_action=delete_ingred|>
|>
"""

Expand All @@ -29,3 +30,6 @@ def update_num_ingred(state):

def confirmed_ingred(state):
navigate(state, "recipes")

def delete_ingred(state):
navigate(state, to="ingredients")

0 comments on commit c279109

Please sign in to comment.