fixed click on ingredient table rows checking row

This commit is contained in:
vabene1111
2025-06-11 20:32:58 +02:00
parent a5a0264e41
commit 612c5e6668

View File

@@ -27,8 +27,8 @@
<v-table density="compact"> <v-table density="compact">
<tbody> <tbody>
<template v-for="i in ingredients" :key="i.id" @click="i.checked = !i.checked"> <template v-for="i in ingredients" :key="i.id" >
<tr> <tr @click="i.checked = !i.checked">
<template v-if="i.isHeader"> <template v-if="i.isHeader">
<td colspan="5" class="font-weight-bold">{{ i.note }}</td> <td colspan="5" class="font-weight-bold">{{ i.note }}</td>
</template> </template>
@@ -50,7 +50,7 @@
<a v-else-if="i.food.url" :href="i.food.url" target="_blank">{{ ingredientToFoodString(i, ingredientFactor) }}</a> <a v-else-if="i.food.url" :href="i.food.url" target="_blank">{{ ingredientToFoodString(i, ingredientFactor) }}</a>
<span v-else>{{ ingredientToFoodString(i, ingredientFactor) }}</span> <span v-else>{{ ingredientToFoodString(i, ingredientFactor) }}</span>
<template v-if="i.note != '' && i.note != undefined"> <template v-if="i.note != '' && i.note != undefined">
<span class="text-disabled font-italic">&nbsp;{{ i.note }}</span> <span class="d-none d-print-block text-disabled font-italic">&nbsp;{{ i.note }}</span>
</template> </template>
</template> </template>