You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The event/[id] page has a 'delete' button for removing an event, but it is currently non-functional. This task involves implementing the delete functionality so that only an admin can delete an event. The delete request should call the api/v1/delete/event endpoint with the correct event id as search params (i.e., ?id= )
Tasks
Update the Delete button to trigger an API call to api/v1/delete/event.
Pass the correct event id as a search params in the API request.
Add validation to ensure that only an admin can delete the event.
Display a confirmation prompt to confirm the deletion before proceeding.
Implement error handling to manage cases where the user is not authorized to delete the event.
Acceptance Criteria
Only admin users can delete an event on the event/[id] page.
A confirmation prompt appears before deletion is finalized.
Proper error messages display when unauthorized users attempt to delete an event.
The delete functionality calls api/v1/delete/event?id='' where id should be correct event id and handles responses properly.
The text was updated successfully, but these errors were encountered:
Description
The
event/[id]
page has a 'delete' button for removing an event, but it is currently non-functional. This task involves implementing the delete functionality so that only an admin can delete an event. The delete request should call theapi/v1/delete/event
endpoint with the correct eventid
as search params (i.e.,?id=
)Tasks
api/v1/delete/event
.id
as a search params in the API request.admin
can delete the event.Acceptance Criteria
event/[id]
page.api/v1/delete/event?id=''
where id should be correct event id and handles responses properly.The text was updated successfully, but these errors were encountered: