mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-27 09:09:43 +02:00
feature/recipe-comments (#448)
* fix favorite color issue * db and models for comments * rename files * initial UI for comments * fix format * import / export * fixes #428 * format Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
6f38fcf81b
commit
2b97af5728
22 changed files with 360 additions and 19 deletions
|
@ -44,6 +44,13 @@
|
|||
/>
|
||||
<RecipeEditor v-else v-model="recipeDetails" ref="recipeEditor" @upload="getImageFile" />
|
||||
</v-card>
|
||||
<CommentsSection
|
||||
class="mt-2"
|
||||
:slug="recipeDetails.slug"
|
||||
:comments="recipeDetails.comments"
|
||||
@new-comment="getRecipeDetails"
|
||||
@update-comment="getRecipeDetails"
|
||||
/>
|
||||
<PrintView :recipe="recipeDetails" />
|
||||
</v-container>
|
||||
</template>
|
||||
|
@ -60,6 +67,7 @@ import EditorButtonRow from "@/components/Recipe/EditorButtonRow";
|
|||
import NoRecipe from "@/components/Fallbacks/NoRecipe";
|
||||
import { user } from "@/mixins/user";
|
||||
import { router } from "@/routes";
|
||||
import CommentsSection from "@/components/Recipe/CommentSection";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
@ -71,6 +79,7 @@ export default {
|
|||
PrintView,
|
||||
NoRecipe,
|
||||
FavoriteBadge,
|
||||
CommentsSection,
|
||||
},
|
||||
mixins: [user],
|
||||
inject: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue