mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
Show amounts even when unit is empty
This commit is contained in:
@@ -148,9 +148,12 @@
|
|||||||
<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>
|
||||||
[[i.unit.name]]
|
{# Allow for amounts without units, such as "2 eggs" #}
|
||||||
|
<template v-if="i.unit">
|
||||||
|
[[i.unit.name]]
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
@@ -263,9 +266,12 @@
|
|||||||
<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>
|
||||||
[[i.unit.name]]
|
{# Allow for amounts without units, such as "2 eggs" #}
|
||||||
|
<template v-if="i.unit">
|
||||||
|
[[i.unit.name]]
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user