mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-02 10:13:35 -05: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user