mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
fix: Show All Recipes in Cookbook Regardless of Sort (#4908)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
c096605fc9
commit
0d96ec3858
3 changed files with 18 additions and 10 deletions
|
@ -104,9 +104,12 @@
|
|||
}
|
||||
const response = await actions.updateOne(editTarget.value);
|
||||
|
||||
// if name changed, redirect to new slug
|
||||
if (response?.slug && book.value?.slug !== response?.slug) {
|
||||
// if name changed, redirect to new slug
|
||||
router.push(`/g/${route.value.params.groupSlug}/cookbooks/${response?.slug}`);
|
||||
} else {
|
||||
// otherwise reload the page, since the recipe criteria changed
|
||||
router.go(0);
|
||||
}
|
||||
dialogStates.edit = false;
|
||||
editTarget.value = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue