phillipahereza / mattermost-plugin-digitalocean

A Mattermost plugin to interact with DigitalOcean 🔌

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Droplet - verify required fields when hit create

jfrerich opened this issue · comments

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

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