parsley/app/javascript/components/TheRecipeCreator.vue

46 lines
744 B
Vue
Raw Normal View History

2018-04-01 21:43:23 -05:00
<template>
<div>
<recipe-edit :recipe="recipe" action="Creating"></recipe-edit>
</div>
</template>
<script>
import RecipeEdit from "./RecipeEdit";
import { mapState } from "vuex";
import api from "../lib/Api";
export default {
data() {
return {
recipe: {
name: null,
source: null,
description: null,
yields: null,
total_time: null,
active_time: null,
step_text: null,
tags: [],
ingredients: []
}
}
},
computed: {
...mapState({
recipeId: state => state.route.params.id,
})
},
components: {
RecipeEdit
}
}
</script>
<style lang="scss" scoped>
</style>