globalmangrovewatch / gmw-users

All functionality for user accounts in the Global Mangrove Watch platform
MIT License
2 stars 2 forks source link

show toast warning when form is saved with errors #344

Closed julia-rom closed 1 year ago

julia-rom commented 1 year ago

I added an additional toast warning that appears when a user hits save and there are form errors.

There already is a 'this form was not saved' box that sits at the top of the page, however it is easy to miss if you are scrolled past it. I thought about making it sticky, but think the extra toast warning should help

To test:

  1. create a new site
  2. go to a form page that has required items (such as a monitoring form)
  3. hit save without entering any data
  4. toast warning should appear
github-actions[bot] commented 1 year ago

A review app was created for this PR. See https://gmw-users-staging-7548336.herokuapp.com/

github-actions[bot] commented 1 year ago

The review app https://gmw-users-staging-7548336.herokuapp.com/ was deleted.