JamesPartsafas / ConcordiaCurriculumManager

The current Concordia University Curriculum Management System (CCMS) has a few limitations and missing functionalities. The goal is to create a new optimized, user-friendly and cost-effective CCMS.
MIT License
3 stars 1 forks source link

Implement frontend for deleting review messages #553

Closed kennyphan100 closed 5 months ago

kennyphan100 commented 5 months ago

Created a new Delete button to remove the unwanted messages.

This closes #548

kennyphan100 commented 5 months ago

I'm not sure why my branch removed some new code for the Voting functionality. Ill fix that.

kennyphan100 commented 5 months ago

I'm not sure why my branch removed some new code for the Voting functionality. I'll fix that.

It should be good now.

JamesPartsafas commented 5 months ago

It hides the comment, but if there's any replies, all the replies get removed as well, because of our nested comment system. Instead, we can use a system similar to Reddit, where if a user deletes their message, the system simply displays This message has been deleted., and any replies are still shown (in fact, this is why isDeleted is a boolean value for message now).

kennyphan100 commented 5 months ago

It hides the comment, but if there's any replies, all the replies get removed as well, because of our nested comment system. Instead, we can use a system similar to Reddit, where if a user deletes their message, the system simply displays This message has been deleted., and any replies are still shown (in fact, this is why isDeleted is a boolean value for message now).

I made the changes. Let me know what you think.