shopping fixes

This commit is contained in:
vabene1111
2025-01-02 09:39:47 +01:00
parent 2841e086df
commit 9e99edf6f6
2 changed files with 23 additions and 14 deletions

View File

@@ -58,6 +58,9 @@
</b>
{{ e.food.name }}
</v-list-item-title>
<v-list-item-subtitle v-if="e.completedAt">
<v-icon icon="fa-solid fa-check" size="small" color="success"></v-icon> {{$t('Completed')}} {{DateTime.fromJSDate(e.completedAt).toLocaleString(DateTime.DATETIME_SHORT)}}
</v-list-item-subtitle>
<v-list-item-subtitle v-if="e.recipeMealplan && e.recipeMealplan.recipeName !== ''">
{{ e.recipeMealplan.servings }} x
<router-link :to="{name: 'view_recipe', params: {id: e.recipeMealplan.id}}" target="_blank" class="text-decoration-none"><b>

View File

@@ -167,6 +167,10 @@ const infoRow = computed(() => {
for (let i in entries.value) {
let e = entries.value[i]
if (!e.checked && !isDelayed(e)
|| (e.checked && useUserPreferenceStore().deviceSettings.shopping_show_checked_entries)
|| (isDelayed(e) && useUserPreferenceStore().deviceSettings.shopping_show_delayed_entries)) {
if (authors.indexOf(e.createdBy.displayName) === -1) {
authors.push(e.createdBy.displayName)
}
@@ -186,6 +190,8 @@ const infoRow = computed(() => {
}
}
}
}
}
if (useUserPreferenceStore().deviceSettings.shopping_item_info_created_by && authors.length > 0) {