mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 05:09:40 +02:00
feat: Filter Recipes By Household (and a ton of bug fixes) (#4207)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
2a6922a85c
commit
7c274de778
65 changed files with 896 additions and 590 deletions
|
@ -3,6 +3,8 @@
|
|||
v-model="selected"
|
||||
item-key="id"
|
||||
show-select
|
||||
sort-by="dateAdded"
|
||||
sort-desc
|
||||
:headers="headers"
|
||||
:items="recipes"
|
||||
:items-per-page="15"
|
||||
|
@ -39,6 +41,9 @@
|
|||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<template #item.dateAdded="{ item }">
|
||||
{{ formatDate(item.dateAdded) }}
|
||||
</template>
|
||||
</v-data-table>
|
||||
</template>
|
||||
|
||||
|
@ -132,6 +137,14 @@ export default defineComponent({
|
|||
return hdrs;
|
||||
});
|
||||
|
||||
function formatDate(date: string) {
|
||||
try {
|
||||
return i18n.d(Date.parse(date), "medium");
|
||||
} catch {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
// ============
|
||||
// Group Members
|
||||
const api = useUserApi();
|
||||
|
@ -160,6 +173,7 @@ export default defineComponent({
|
|||
groupSlug,
|
||||
setValue,
|
||||
headers,
|
||||
formatDate,
|
||||
members,
|
||||
getMember,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue