This commit is contained in:
vabene1111
2021-01-13 20:49:04 +01:00
parent ec778edb93
commit 948eb9be3e
3 changed files with 24 additions and 3 deletions

View File

@@ -7,9 +7,11 @@
</div>
</div>
<!--TODO Tags -->
<div style="text-align: center">
<keywords :recipe="recipe"></keywords>
</div>
<div class="row">
<div class="row" style="margin-top: 8px">
<div class="col-12" style="text-align: center">
<i>{{ recipe.description }}</i>
</div>
@@ -146,6 +148,7 @@ import ImageViewer from "@/components/ImageViewer";
import Nutrition from "@/components/Nutrition";
import moment from 'moment'
import Keywords from "@/components/Keywords";
Vue.prototype.moment = moment
@@ -164,6 +167,7 @@ export default {
Step,
RecipeContextMenu,
Nutrition,
Keywords,
},
data() {
return {

View File

@@ -0,0 +1,17 @@
<template>
<div v-if="recipe.keywords.length > 0">
<small :key="k.id" v-for="k in recipe.keywords" style="padding: 2px">
{{k.icon}} {{k.name}}
</small>
</div>
</template>
<script>
export default {
name: 'Keywords',
props: {
recipe: Object,
},
}
</script>