This story will change enroll links on the course home page to immediately enroll the user, and then refresh the page to show enroll-only content. A success message will be shown to show that the user is notified that they successfully enrolled (confirm with ).
Update the Enroll Now button to use the enrollment API
Success message or error message depending on whether or not the learner can be enrolled.
Add a Waffle flag so that we can disable the button for certain courses
Create a follow-up story to remove the Waffle flag
Emit an event with the right parameters to show that the course home did the enrollment