1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-07-01 06:11:43 +02:00

compute creation feedback fix

This commit is contained in:
Matthias Kretschmann 2020-10-22 13:22:32 +02:00
parent ce6872d0bd
commit 0b99155923
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -128,17 +128,20 @@ export default function Compute({
<Dropzone multiple={false} handleOnDrop={onDrop} />
<div className={styles.actions}>
<Button
style="primary"
onClick={() => startJob()}
disabled={isComputeButtonDisabled}
>
{hasDatatoken ? 'Start job' : 'Buy'}
</Button>
{isLoading ? (
<Loader message={computeStepText} />
) : (
<Button
style="primary"
onClick={() => startJob()}
disabled={isComputeButtonDisabled}
>
{hasDatatoken ? 'Start job' : 'Buy'}
</Button>
)}
</div>
<footer className={styles.feedback}>
{isLoading && <Loader message={computeStepText} />}
{computeError !== undefined && (
<Alert text={computeError} state="error" />
)}