This commit is contained in:
vabene1111 2021-11-01 11:37:55 +01:00
parent 4efed9a1d2
commit 355f2d30a6
4 changed files with 4 additions and 5 deletions

View File

@ -40,8 +40,8 @@
<table class="table table-sm">
<!-- eslint-disable vue/no-v-for-template-key-on-child -->
<template v-for="i in step.ingredients">
<Ingredient v-bind:ingredient="i" :ingredient_factor="ingredient_factor" :key="i.id"
@checked-state-changed="$emit('checked-state-changed', i)"></Ingredient>
<Ingredient-component v-bind:ingredient="i" :ingredient_factor="ingredient_factor" :key="i.id"
@checked-state-changed="$emit('checked-state-changed', i)"></Ingredient-component>
</template>
<!-- eslint-enable vue/no-v-for-template-key-on-child -->
</table>
@ -158,14 +158,13 @@
import {calculateAmount} from "@/utils/utils";
import Ingredient from "@/components/Ingredient";
import {GettextMixin} from "@/utils/utils";
import CompileComponent from "@/components/CompileComponent";
import Vue from "vue";
import moment from "moment";
import Keywords from "@/components/Keywords";
import {ResolveUrlMixin} from "@/utils/utils";
import IngredientComponent from "@/components/IngredientComponent";
Vue.prototype.moment = moment
@ -176,7 +175,7 @@ export default {
ResolveUrlMixin,
],
components: {
Ingredient,
IngredientComponent,
CompileComponent,
},
props: {