MauroDataMapper/mdm-ui

Grey-out buttons after submission

Opened this issue · 4 comments

The UI should probably disable buttons after they've been clicked, until a response is received. This would stop multiple requests being made in error. For example, the 'submit data model' button on creating a new data model, allows several clicks and may make several requests.
Screenshot 2022-01-26 at 11 43 08

There are almost certainly other examples in other places.

Hi @jamesrwelch , I am willing to solve this issue, but after serving the app, I am not getting the response from APIs.
image

Hi @shikhavani . Are you able to check if you have a running instance of the Mauro backend? During development of the UI, the default API endpoint is configured to be http://localhost:8080/api, so do you have a running Mauro web service on that address/port?

If not we can run you through the steps to get ready.

Apologies for that @shikhavani , there should be something to explain how to setup the UI end-to-end. I'll add a new issue to update the README.

In the meantime, you'll need to follow some of the steps in these two other repo README's:

  1. mdm-core - explains what dependencies you will need - Grails, Postgres etc
  2. mdm-application-build - this is the repo you'll need to get a running backend instance. This is a Grails app which uses the latest mdm-core code to run.

If you need any other help, please take a look at the https://maurodatamapper.github.io/community/contribute/ page, this can also point you to the Zulip community chat so you can ask further questions to other people.

cc @jamesrwelch