JagrajAulakh / COMP-4110-microblog

MIT License
0 stars 0 forks source link

#31 delete post #81

Closed JagrajAulakh closed 1 year ago

JagrajAulakh commented 1 year ago

Closes #31

PLEASE DONT MERGE UNTIL EVERYTHING IS CLEAR

What changed?

The user can see a "Delete post" button on their own posts:

image

But not on posts that are not by the user:

image


When the user clicks the red delete button, they will get a confirmation (for now it is showing the post's internal id from DB):

image

and once the user confirms, the page is refreshed to reflect the changed data:

image


NOTE: These changes affect any post seen on the site. For example, in the user's profile page as well

image