mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed use servings when adding recipe to meal plan
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item prepend-icon="$mealplan" link>
|
<v-list-item prepend-icon="$mealplan" link>
|
||||||
{{ $t('Add_to_Plan') }}
|
{{ $t('Add_to_Plan') }}
|
||||||
<model-edit-dialog model="MealPlan" :itemDefaults="{recipe: recipe}"></model-edit-dialog>
|
<model-edit-dialog model="MealPlan" :itemDefaults="{recipe: recipe, servings: recipe.servings}"></model-edit-dialog>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item prepend-icon="$shopping" link>
|
<v-list-item prepend-icon="$shopping" link>
|
||||||
{{ $t('Add_to_Shopping') }}
|
{{ $t('Add_to_Shopping') }}
|
||||||
@@ -37,7 +37,7 @@ import AddToShoppingDialog from "@/components/dialogs/AddToShoppingDialog.vue";
|
|||||||
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
recipe: {type: Object as PropType<Recipe | RecipeFlat | RecipeOverview>, required: true},
|
recipe: {type: Object as PropType<Recipe | RecipeOverview>, required: true},
|
||||||
size: {type: String, default: 'medium'},
|
size: {type: String, default: 'medium'},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user