Closed mmcky closed 5 years ago
@DrDrij I added an extra Delete button but can you help reassess if this is where we want the button at ? or should we place it a different location and different styling?
[Additional Doc]
db.comments.remove({"author": ObjectId(authorId)})
This will remove the user's comments and after refresh, the comments on client will re-render and display the correct comment count on the the specific notebook page in which the comment(s) was made.
Bug - the comment count on the list of notebook page(home page) is still considering the total without the newly deleted ones. true
.db.submissions.remove({"_id": ObjectId(userId)}
thanks @AtlasMaxima. The new setup for deletion is looking good. Thanks for adding the modal.
We should add the ability for users to delete their own profile as a RED button to their profile page.