CMU-17313Q / fall23-nodebb-just-relax

fall23-nodebb-just-relax created by GitHub Classroom
GNU General Public License v3.0
0 stars 2 forks source link

Added a Pop-up Confirmation Screen to the Resolve Button (Front-End) #42

Closed Maria-Aidarus closed 1 year ago

Maria-Aidarus commented 1 year ago

Resolves #36 For this pull request, I updated the themes/nodebb-theme-persona/templates/partials/topic/post.tpl template. My solution involved implementing a pop-up screen that activates when a user clicks the "resolve" button within a post. The confirmation pop-up was made using HTML and to trigger the appearance of this confirmation pop-up when the designated button is clicked, I used JavaScript code. This implementation utilized JavaScript event listeners to detect button clicks. Upon detecting a click on the trigger button, a designated function is executed to toggle the visibility of the confirmation pop-up. This approach provides users with the flexibility to choose whether to proceed with the action or cancel it, enhancing the overall user experience.