added plural migration and pass param trough in recipe view

This commit is contained in:
vabene1111
2022-11-22 07:58:12 +01:00
parent f92ee32c01
commit 39ccf7bbcf
5 changed files with 57 additions and 6 deletions

View File

@ -18,11 +18,11 @@
<td @click="done">
<template v-if="ingredient.unit !== null && !ingredient.no_amount">
<template v-if="!use_plural">
<span>{{ ingredient.unit.name }}
<span>{{ ingredient.unit.name }}</span>
</template>
<template v-else>
<template v-if="ingredient.unit.plural_name === '' || ingredient.unit.plural_name === null">
<span>{{ ingredient.unit.name }}
<span>{{ ingredient.unit.name }}</span>
</template>
<template v-else>
<span v-if="ingredient.always_use_plural_unit">{{ ingredient.unit.plural_name}}</span>