mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
Put ref in v-show so Vue can pick it up on mount, toggle JSON show on click (#1045)
This commit is contained in:
parent
e3e7230359
commit
5c7cf5f334
@ -13,19 +13,19 @@
|
||||
<RecipePageActionMenu
|
||||
logged-in
|
||||
:value="true"
|
||||
@json="jsonEditor = true"
|
||||
@edit="jsonEditor = false"
|
||||
@json="jsonEditor = !jsonEditor"
|
||||
@edit="jsonEditor = !jsonEditor"
|
||||
@save="createRecipe"
|
||||
/>
|
||||
|
||||
<div v-if="jsonEditor">
|
||||
<div v-show="jsonEditor">
|
||||
<!-- Probably not the best way, but it works! -->
|
||||
<br />
|
||||
<br />
|
||||
<VJsoneditor v-model="recipeDetails" height="1500px" :options="jsonEditorOptions" />
|
||||
</div>
|
||||
|
||||
<RecipeEditor ref="recipeEditor" v-else v-model="recipeDetails" @upload="getImage" />
|
||||
<RecipeEditor ref="recipeEditor" v-show="!jsonEditor" v-model="recipeDetails" @upload="getImage" />
|
||||
</v-card>
|
||||
</v-container>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user