1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-25 08:09:41 +02:00

Rewrite Recipe Editor Buttons Bar (#482)

* rewrite editor button row

* add context menu items to recipe page

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-06-10 18:32:03 -08:00 committed by GitHub
parent c175c8e9a0
commit ead02737ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 221 additions and 116 deletions

View file

@ -10,7 +10,7 @@
</v-img>
<br v-else />
<EditorButtonRow @json="jsonEditor = true" @editor="jsonEditor = false" @save="createRecipe" />
<RecipePageActionMenu @json="jsonEditor = true" @edit="jsonEditor = false" @save="createRecipe" />
<div v-if="jsonEditor">
<!-- Probably not the best way, but it works! -->
@ -29,12 +29,12 @@ import { api } from "@/api";
import RecipeEditor from "@/components/Recipe/RecipeEditor";
import VJsoneditor from "v-jsoneditor";
import EditorButtonRow from "@/components/Recipe/EditorButtonRow";
import RecipePageActionMenu from "@/components/Recipe/RecipePageActionMenu";
export default {
components: {
VJsoneditor,
RecipeEditor,
EditorButtonRow,
RecipePageActionMenu,
},
data() {
return {