diff --git a/frontend/api/class-interfaces/recipe-units.ts b/frontend/api/class-interfaces/recipe-units.ts index 16627fa1f6c8..e583c24a8c92 100644 --- a/frontend/api/class-interfaces/recipe-units.ts +++ b/frontend/api/class-interfaces/recipe-units.ts @@ -5,6 +5,7 @@ const prefix = "/api"; export interface CreateUnit { name: string; abbreviation: string; + fraction: boolean; description: string; } diff --git a/frontend/api/class-interfaces/recipes.ts b/frontend/api/class-interfaces/recipes.ts index 15f28cffb405..83549e5a242e 100644 --- a/frontend/api/class-interfaces/recipes.ts +++ b/frontend/api/class-interfaces/recipes.ts @@ -1,6 +1,5 @@ import { BaseCRUDAPI } from "./_base"; -import { Recipe , CreateRecipe } from "~/types/api-types/recipe"; - +import { Recipe, CreateRecipe } from "~/types/api-types/recipe"; const prefix = "/api"; diff --git a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue index f6f85a609ef1..4992b738e38b 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue @@ -27,7 +27,7 @@ - - + + - - + + @@ -81,10 +87,14 @@ + \ No newline at end of file diff --git a/frontend/components/Domain/Recipe/RecipeIngredientFoodDialog.vue b/frontend/components/Domain/Recipe/RecipeIngredientFoodDialog.vue new file mode 100644 index 000000000000..b14c0cb672d1 --- /dev/null +++ b/frontend/components/Domain/Recipe/RecipeIngredientFoodDialog.vue @@ -0,0 +1,38 @@ + + + + diff --git a/frontend/components/Domain/Recipe/RecipeIngredientUnitDialog.vue b/frontend/components/Domain/Recipe/RecipeIngredientUnitDialog.vue new file mode 100644 index 000000000000..474714519f02 --- /dev/null +++ b/frontend/components/Domain/Recipe/RecipeIngredientUnitDialog.vue @@ -0,0 +1,40 @@ + + + + diff --git a/frontend/components/Domain/Recipe/RecipeIngredients.vue b/frontend/components/Domain/Recipe/RecipeIngredients.vue index 6e2a4da79651..afeeb34de013 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredients.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredients.vue @@ -1,68 +1,15 @@