mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-31 20:25:14 -04:00
feat: add the RecipeCardMenu to the recipe in a mealplan (#1551)
* Add the RecipeCardMenu to the recipe in a mealplan * fix parameter naming Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
553325ed09
commit
ca64584fd1
@ -118,7 +118,8 @@
|
|||||||
tiny
|
tiny
|
||||||
icon-size="25"
|
icon-size="25"
|
||||||
:slug="mealplan.recipe ? mealplan.recipe.slug : ''"
|
:slug="mealplan.recipe ? mealplan.recipe.slug : ''"
|
||||||
/>
|
>
|
||||||
|
</RecipeCardImage>
|
||||||
<v-icon v-else>
|
<v-icon v-else>
|
||||||
{{ $globals.icons.primary }}
|
{{ $globals.icons.primary }}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
@ -234,6 +235,20 @@
|
|||||||
</v-icon>
|
</v-icon>
|
||||||
{{ mealplan.entryType }}
|
{{ mealplan.entryType }}
|
||||||
</v-chip>
|
</v-chip>
|
||||||
|
<RecipeContextMenu
|
||||||
|
:name="mealplan.recipe.name"
|
||||||
|
:recipe-id="mealplan.recipe.id"
|
||||||
|
:slug="mealplan.recipe ? mealplan.recipe.slug : ''"
|
||||||
|
:use-items="{
|
||||||
|
delete: false,
|
||||||
|
edit: false,
|
||||||
|
download: true,
|
||||||
|
mealplanner: false,
|
||||||
|
print: true,
|
||||||
|
share: false,
|
||||||
|
shoppingList: true,
|
||||||
|
}"
|
||||||
|
/>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</template>
|
</template>
|
||||||
</RecipeCard>
|
</RecipeCard>
|
||||||
@ -254,6 +269,7 @@ import { useMealplans, planTypeOptions } from "~/composables/use-group-mealplan"
|
|||||||
import { useRecipes, allRecipes } from "~/composables/recipes";
|
import { useRecipes, allRecipes } from "~/composables/recipes";
|
||||||
import RecipeCardImage from "~/components/Domain/Recipe/RecipeCardImage.vue";
|
import RecipeCardImage from "~/components/Domain/Recipe/RecipeCardImage.vue";
|
||||||
import RecipeCard from "~/components/Domain/Recipe/RecipeCard.vue";
|
import RecipeCard from "~/components/Domain/Recipe/RecipeCard.vue";
|
||||||
|
import RecipeContextMenu from "~/components/Domain/Recipe/RecipeContextMenu.vue";
|
||||||
import { PlanEntryType } from "~/types/api-types/meal-plan";
|
import { PlanEntryType } from "~/types/api-types/meal-plan";
|
||||||
import { useUserApi } from "~/composables/api";
|
import { useUserApi } from "~/composables/api";
|
||||||
|
|
||||||
@ -262,6 +278,7 @@ export default defineComponent({
|
|||||||
draggable,
|
draggable,
|
||||||
RecipeCardImage,
|
RecipeCardImage,
|
||||||
RecipeCard,
|
RecipeCard,
|
||||||
|
RecipeContextMenu,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user