steps overview in recipe view

This commit is contained in:
vabene1111
2024-02-24 12:16:24 +01:00
parent 1b8d501208
commit f58d9e49d8
118 changed files with 139 additions and 23419 deletions

View File

@@ -0,0 +1,39 @@
<template>
<tr>
<template v-if="ingredient.isHeader">
<td colspan="4">{{ ingredient.note }}</td>
</template>
<td>{{ ingredient.amount }}</td>
<td><span v-if="ingredient.unit != null">{{ ingredient.unit.name }}</span></td>
<td>{{ ingredient.food.name }}</td>
<td>
<v-icon class="far fa-comment" v-if="ingredient.note != ''" @click="show_tooltip = !show_tooltip">
<v-tooltip v-model="show_tooltip" activator="parent" location="start">{{ ingredient.note }}</v-tooltip>
</v-icon>
</td>
</tr>
</template>
<script lang="ts">
import {defineComponent, PropType} from 'vue'
import {Ingredient} from "@/openapi";
export default defineComponent({
name: "IngredientsTableRow",
props: {
ingredient: {
type: {} as PropType<Ingredient>,
required: true
}
},
data(){
return {
show_tooltip: false,
}
},
})
</script>
<style scoped>
</style>