mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
Show amounts even when unit is empty
This commit is contained in:
@@ -148,10 +148,13 @@
|
|||||||
<template v-if="i.no_amount">
|
<template v-if="i.no_amount">
|
||||||
<span>⁣</span>
|
<span>⁣</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!i.no_amount && i.unit">
|
<template v-if="!i.no_amount">
|
||||||
<span>[[roundDecimals(i.amount * ingredient_factor)]]</span>
|
<span>[[roundDecimals(i.amount * ingredient_factor)]]</span>
|
||||||
|
{# Allow for amounts without units, such as "2 eggs" #}
|
||||||
|
<template v-if="i.unit">
|
||||||
[[i.unit.name]]
|
[[i.unit.name]]
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -263,10 +266,13 @@
|
|||||||
<template v-if="i.no_amount">
|
<template v-if="i.no_amount">
|
||||||
<span>⁣</span>
|
<span>⁣</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!i.no_amount && i.unit">
|
<template v-if="!i.no_amount">
|
||||||
<span>[[roundDecimals(i.amount * ingredient_factor)]]</span>
|
<span>[[roundDecimals(i.amount * ingredient_factor)]]</span>
|
||||||
|
{# Allow for amounts without units, such as "2 eggs" #}
|
||||||
|
<template v-if="i.unit">
|
||||||
[[i.unit.name]]
|
[[i.unit.name]]
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user