1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-03 04:25:24 +02:00

feat(frontend): Rewrite context menu in TS and add 'add to mealplan' context menu action (#786)

* make entry for NLP model `setup-model`

* add comments

* feat(frontend):  Rewrite context menu in TS and add 'add to mealplan' options

* add note to changelog

Co-authored-by: Hayden K <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-11-05 21:29:15 -08:00 committed by GitHub
parent 5cb4a1ade0
commit 095d3bda3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 314 additions and 156 deletions

View file

@ -54,6 +54,7 @@
:name="recipe.name"
:logged-in="$auth.loggedIn"
:open="form"
:recipe-id="recipe.id"
class="ml-auto"
@close="closeEditor"
@json="toggleJson"
@ -382,6 +383,7 @@ export default defineComponent({
async function updateRecipe(slug: string, recipe: Recipe) {
const { data } = await api.recipes.updateOne(slug, recipe);
state.form = false;
state.jsonEditor = false;
if (data?.slug) {
router.push("/recipe/" + data.slug);
}