Skip to content

Commit

Permalink
refine the failed flow
Browse files Browse the repository at this point in the history
  • Loading branch information
scoxen1 committed Apr 16, 2024
1 parent 84bdee9 commit 8fbbea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/views/custom/ApogeanStartTrial.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function ApogeanStartTrial(props) {
}

const renderForm = () => {
const disabled = !(_jobStatus === AppSettings.JobLogStatus.NotStarted);
const disabled = !(_jobStatus === AppSettings.JobLogStatus.NotStarted || _jobStatus === AppSettings.JobLogStatus.Failed);
return (
<Form noValidate className="mx-3" >
<div className="row mb-2">
Expand Down Expand Up @@ -324,14 +324,14 @@ function ApogeanStartTrial(props) {
}

const renderMainContent = () => {
if (_jobStatus === AppSettings.JobLogStatus.Failed) return;
//if (_jobStatus === AppSettings.JobLogStatus.Failed) return;

return (
<>
<div className="marketplace-list-item border" >
<div className="card mb-0 border-0">
<div className="card-body">
{(_jobStatus !== AppSettings.JobLogStatus.Completed && _jobStatus !== AppSettings.JobLogStatus.Failed) &&
{(_jobStatus !== AppSettings.JobLogStatus.Completed) &&
<>
{renderForm()}
</>
Expand Down

0 comments on commit 8fbbea9

Please sign in to comment.