Replies: 3 comments
-
If you don't need the ReactJS plugin, I suggest you to look at the I still need to add vanilla JS to post comments. |
Beta Was this translation helpful? Give feedback.
-
This is how the new demo project looks like. |
Beta Was this translation helpful? Give feedback.
-
Wow, looks nice, I like it! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to implement vanilla JS ajax comments (without heavy jQuery and ReactJS dependencies) and have troubles with
django_comments_xtd.api.serializers.FlagSerializer
as it returns only a comment ID and flag, so I can't update likes and dislikes count based on this response. Even if I increment likes count based on a non-empty response, I can't be sure if dislikes should be decremented or not (for example, if the user disliked the comment earlier). Any chances likes and dislikes count will be added to this serializer in the future? Or maybe there is a workaround?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions