phillipahereza / mattermost-plugin-digitalocean

A Mattermost plugin to interact with DigitalOcean 🔌
14 stars 7 forks source link

Create Droplet - verify required fields when hit create #73

Open jfrerich opened 4 years ago

jfrerich commented 4 years ago

Describe the bug The required fields are marked correctly in the UI modal, but leaving them empty and hitting Create will cause JS errors.

The Create button should validate the required fields before sending the create request. I've included an image of how the Jira plugin handles field validation when clicking the create button.

To Reproduce Steps to reproduce the behavior:

  1. /do create-droplet
  2. leave required fields empty
  3. click Create button
  4. See error

Expected behavior It would be great if after clicking Create, the required fields that are empty notify the user to fill them.

Screenshots image

Jira validation image

Mattermost (please complete the following information): n/a

Additional context n/a

phillipahereza commented 4 years ago

@AGMETEOR could you take a look at this. For some reason I am unable to assign you