mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-29 09:14:28 -04:00
34 lines
600 B
Vue
34 lines
600 B
Vue
|
|
<template>
|
||
|
|
<div>
|
||
|
|
<h2 class="mb-4">{{ $t("recipe.ingredients") }}</h2>
|
||
|
|
<div
|
||
|
|
v-for="(ingredient, index) in ingredients"
|
||
|
|
:key="generateKey('ingredient', index)"
|
||
|
|
>
|
||
|
|
<v-checkbox
|
||
|
|
hide-details
|
||
|
|
class="ingredients"
|
||
|
|
:label="ingredient"
|
||
|
|
color="secondary"
|
||
|
|
>
|
||
|
|
</v-checkbox>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import utils from "@/utils";
|
||
|
|
export default {
|
||
|
|
props: {
|
||
|
|
ingredients: Array,
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
generateKey(item, index) {
|
||
|
|
return utils.generateUniqueKey(item, index);
|
||
|
|
},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
</style>
|