munch-ease-frontend/src/components/ActionsPage.vue

30 lines
847 B
Vue
Raw Normal View History

2024-01-13 02:00:15 +00:00
<template>
<div>
<action-item title="Add to next shop" :image="require('@/assets/add-cart.svg')" @click="addToNextShop" />
<action-item title="Add Recipe" :image="require('@/assets/add-recipe.svg')" @click="addRecipe" />
2024-01-13 23:09:15 +00:00
<action-item title="Plan Meal" :image="require('@/assets/plan-meal.svg')" @click="planMeal" />
2024-01-13 02:00:15 +00:00
</div>
</template>
<script>
import ActionItem from './ActionItem.vue'
export default {
name: 'ActionsPage',
components: {
ActionItem
},
methods: {
addToNextShop() {
console.log('Add to next shop')
},
addRecipe() {
console.log('Add Recipe')
this.$router.push('/recipes/add')
2024-01-13 23:09:15 +00:00
},
planMeal() {
console.log('Plan Meal')
this.$router.push('/meals/add')
2024-01-13 02:00:15 +00:00
}
}
}
</script>