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:
parent
c175c8e9a0
commit
ead02737ab
5 changed files with 221 additions and 116 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue