diff --git a/frontend/components/Domain/Recipe/RecipeActionMenu.vue b/frontend/components/Domain/Recipe/RecipeActionMenu.vue index 6822d830b..6de10c9ee 100644 --- a/frontend/components/Domain/Recipe/RecipeActionMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeActionMenu.vue @@ -47,7 +47,6 @@ :recipe-id="recipe.id" :recipe-scale="recipeScale" :use-items="{ - delete: false, edit: false, download: loggedIn, duplicate: loggedIn, @@ -57,6 +56,7 @@ printPreferences: true, share: loggedIn, recipeActions: true, + delete: loggedIn, }" class="ml-1" @print="$emit('print')" diff --git a/frontend/components/Domain/Recipe/RecipeContextMenu.vue b/frontend/components/Domain/Recipe/RecipeContextMenu.vue index b54189251..a0a47832c 100644 --- a/frontend/components/Domain/Recipe/RecipeContextMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeContextMenu.vue @@ -276,7 +276,7 @@ export default defineComponent({ delete: { title: i18n.tc("general.delete"), icon: $globals.icons.delete, - color: "error", + color: undefined, event: "delete", isPublic: false, }, @@ -383,7 +383,10 @@ export default defineComponent({ } async function deleteRecipe() { - await api.recipes.deleteOne(props.slug); + const { data } = await api.recipes.deleteOne(props.slug); + if (data?.slug) { + router.push(`/g/${groupSlug.value}`); + } context.emit("delete", props.slug); } diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index d513e065e..5ac923a44 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -370,6 +370,7 @@ export default { dir: "auto", name: "Mealie", short_name: "Mealie", + crossorigin: "use-credentials", id: "mealie", description: "Mealie is a recipe management and meal planning app", theme_color: process.env.THEME_LIGHT_PRIMARY || "#E58325", diff --git a/poetry.lock b/poetry.lock index 948590b26..fae47a6bf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -32,13 +32,13 @@ tz = ["backports.zoneinfo"] [[package]] name = "aniso8601" -version = "9.0.1" +version = "10.0.0" description = "A library for parsing ISO 8601 strings." optional = false python-versions = "*" files = [ - {file = "aniso8601-9.0.1-py2.py3-none-any.whl", hash = "sha256:1d2b7ef82963909e93c4f24ce48d4de9e66009a21bf1c1e1c85bdd0812fe412f"}, - {file = "aniso8601-9.0.1.tar.gz", hash = "sha256:72e3117667eedf66951bb2d93f4296a56b94b078a8a95905a052611fb3f1b973"}, + {file = "aniso8601-10.0.0-py2.py3-none-any.whl", hash = "sha256:3c943422efaa0229ebd2b0d7d223effb5e7c89e24d2267ebe76c61a2d8e290cb"}, + {file = "aniso8601-10.0.0.tar.gz", hash = "sha256:ff1d0fc2346688c62c0151547136ac30e322896ed8af316ef7602c47da9426cf"}, ] [package.extras] @@ -3421,4 +3421,4 @@ pgsql = ["psycopg2-binary"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "1561f8552de2253187d19299bb098f0ab53b1def90a0fa121a3cba379d5b0da8" +content-hash = "9b9bb87e23f58b14a1d010aeca8093f52df30d794ee5a5028f853dbb8ba883f6" diff --git a/pyproject.toml b/pyproject.toml index 4ac2da76f..7c439ab96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ PyYAML = "^6.0.1" SQLAlchemy = "^2" aiofiles = "^24.0.0" alembic = "^1.11.3" -aniso8601 = "9.0.1" +aniso8601 = "10.0.0" appdirs = "1.4.4" apprise = "^1.4.5" bcrypt = "^4.0.1"