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:
parent
5cb4a1ade0
commit
095d3bda3f
10 changed files with 314 additions and 156 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue