1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-01 11:35:23 +02:00

fix: multiple regressions on data management page (#5758)

This commit is contained in:
Kuchenpirat 2025-07-20 17:06:39 +02:00 committed by GitHub
parent 44b180f5c0
commit e638df37d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 21 deletions

View file

@ -3,12 +3,13 @@
v-model="selected"
item-key="id"
show-select
:sort-by="[{ key: 'dateAdded', order: 'desc' }]"
:sort-by="sortBy"
:headers="headers"
:items="recipes"
:items-per-page="15"
class="elevation-0"
:loading="loading"
return-object
>
<template #[`item.name`]="{ item }">
<a
@ -117,7 +118,7 @@ export default defineNuxtComponent({
},
},
},
emits: ["click"],
emits: ["click", "update:modelValue"],
setup(props, context) {
const i18n = useI18n();
const $auth = useMealieAuth();
@ -128,6 +129,9 @@ export default defineNuxtComponent({
set: value => context.emit(INPUT_EVENT, value),
});
// Initialize sort state with default sorting by dateAdded descending
const sortBy = ref([{ key: "dateAdded", order: "desc" }]);
const headers = computed(() => {
const hdrs: Array<{ title: string; value: string; align?: string; sortable?: boolean }> = [];
@ -206,6 +210,7 @@ export default defineNuxtComponent({
return {
selected,
sortBy,
groupSlug,
headers,
formatDate,

View file

@ -126,7 +126,7 @@
<!-- Alias Sub-Dialog -->
<RecipeDataAliasManagerDialog
v-if="editTarget"
:value="aliasManagerDialog"
v-model="aliasManagerDialog"
:data="editTarget"
@submit="updateFoodAlias"
@cancel="aliasManagerDialog = false"

View file

@ -44,6 +44,7 @@
:title="$t('general.confirm')"
:icon="$globals.icons.alertCircle"
color="error"
can-confirm
@confirm="deleteTag"
>
<v-card-text>

View file

@ -52,6 +52,7 @@
:title="$t('general.confirm')"
:icon="$globals.icons.alertCircle"
color="error"
can-confirm
@confirm="deleteTool"
>
<v-card-text>

View file

@ -19,30 +19,16 @@
v-model="fromUnit"
return-object
:items="store"
item-title="id"
item-title="name"
:label="$t('data-pages.units.source-unit')"
>
<template #chip="{ item }">
{{ item.raw.name }}
</template>
<template #item="{ item }">
{{ item.raw.name }}
</template>
</v-autocomplete>
/>
<v-autocomplete
v-model="toUnit"
return-object
:items="store"
item-title="id"
item-title="name"
:label="$t('data-pages.units.target-unit')"
>
<template #chip="{ item }">
{{ item.raw.name }}
</template>
<template #item="{ item }">
{{ item.raw.name }}
</template>
</v-autocomplete>
/>
<template v-if="canMerge && fromUnit && toUnit">
<div class="text-center">