From 14dbd79c7fecb476dc19bf113ad51655d12e3978 Mon Sep 17 00:00:00 2001 From: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:31:04 +0200 Subject: [PATCH] feat: refactor recipe scaling (#4298) --- .../docs/documentation/getting-started/faq.md | 2 - .../RecipePageParts/RecipePageScale.vue | 15 +++--- .../Domain/Recipe/RecipeScaleEditButton.vue | 52 +++++++++++++------ .../recipe-page/use-extract-recipe-yield.ts | 2 +- frontend/lang/messages/en-US.json | 3 +- 5 files changed, 45 insertions(+), 29 deletions(-) diff --git a/docs/docs/documentation/getting-started/faq.md b/docs/docs/documentation/getting-started/faq.md index dc548461685..b6692f9c9d8 100644 --- a/docs/docs/documentation/getting-started/faq.md +++ b/docs/docs/documentation/getting-started/faq.md @@ -33,8 +33,6 @@ Do the following for each recipe you want to intelligently handle ingredients. Scaling up this recipe or adding it to a Shopping List will now smartly take care of ingredient amounts and duplicate combinations. -Note: Each recipe must have a servings count set for recipe scaling to work. - ## Is it safe to upgrade Mealie? Yes. If you are using the v1 branches (including beta), you can upgrade to the latest version of Mealie without performing a site Export/Restore. This process was required in previous versions of Mealie, however we've automated the database migration process to make it easier to upgrade. Note that if you were using the v0.5.x version, you CANNOT upgrade to the latest version automatically. You must follow the migration instructions in the documentation. diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageScale.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageScale.vue index 18733f9a087..46d56f7ce9d 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageScale.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageScale.vue @@ -1,13 +1,13 @@