mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-15 06:45:23 -05: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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user