ClearBowl/front/pages/recipes/index.vue

34 lines
811 B
Vue
Raw Normal View History

2020-01-12 21:39:31 +01:00
<template>
<div style="width: 100%">
<Row type="flex" justify="center">
<AddRecipeModal style="margin-bottom: 20px" @recipe-added="refreshRecipeTable"/>
2020-01-12 21:39:31 +01:00
</Row>
<Row type="flex" justify="center">
<SearchRecipe ref="recipes" style="width: 80%"/>
2020-01-12 21:39:31 +01:00
</Row>
</div>
</template>
<script>
import AddRecipeModal from "../../components/Recipes/AddRecipeModal";
import SearchRecipe from "../../components/Recipes/SearchRecipe";
export default {
name: 'recipes',
auth: false,
components: {
AddRecipeModal,
SearchRecipe
},
methods: {
refreshRecipeTable(){
this.$refs.recipes.getRecipes();
}
2020-01-12 21:39:31 +01:00
}
};
</script>
<style scoped>
</style>