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