Action - Email Module - Alert when no reps are chosen
Currently even if the user hasn't picked targets we display the email module, which has brought confusion to users. couple emails received where this is the clear issue
Furthermore, we have an issue with the form submit listener that doesnt seem to load properly by times creating the 2 issues in the ticket here (#140)
On the 'validate' button we can :
- Create a new function that checks if there are people selected
- If so, launch the functions normally
- If not, don't display the form but a modal saying the user hasn't chosen anyone
To do this we must :
- Remove the check from getEmail, and make it a dedicated function
- Remove the onclick events, and place them within the "success" part of the newly dedicated function