alpha-dapp
alpha-dapp copied to clipboard
Unlocking 'Create Job' button when there's no job in progress
A few suggested improvements on the dApp! I have unlocked the 'Create Job' button when:
- The job contract hasn't been created yet, so that the user can choose another service if he has picked one by mistake, for example;
- The job is complete, so that the user does not need to refresh the website every time a job is finished. In this case a button is rendered and the user is prompted to confirm that he wants to end the job (in which case the data is wiped).
Accomplished by sharing App's state variables as properties with Services and Job.