MauroDataMapper / mdm-ui

Web front-end for the Mauro Data Mapper
Apache License 2.0
7 stars 5 forks source link

Grey-out buttons after submission #443

Open jamesrwelch opened 2 years ago

jamesrwelch commented 2 years ago

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.

shikhavani commented 2 years ago

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

pjmonks commented 2 years ago

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.

shikhavani commented 2 years ago

Hi, No, I haven't run any backend service for now. I will be requiring your help to do the process as I haven't found any steps on your git.

On Mon, Jan 31, 2022 at 2:56 PM Peter Monks @.***> wrote:

Hi @shikhavani https://github.com/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.

— Reply to this email directly, view it on GitHub https://github.com/MauroDataMapper/mdm-ui/issues/443#issuecomment-1025535136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPSN4SV64GWWYFIURQXK6TUYZIU3ANCNFSM5M22ANRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

pjmonks commented 2 years ago

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