Skip to content

Commit 861a7a7

Browse files
committed
fix to also allow activate project if it has active phases
1 parent ecb4372 commit 861a7a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/ProjectInfo/ProjectInfo.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class ProjectInfo extends Component {
5252
)
5353

5454
const activePhases = phases ? phases.filter((phase) => phase.status === PHASE_STATUS_ACTIVE) : []
55-
const hasReviewedPhases = !!_.find(phases, (phase) => phase.status === PHASE_STATUS_REVIEWED)
56-
const projectCanBeActive = (project.status !== PROJECT_STATUS_ACTIVE && hasReviewedPhases) || project.status === PROJECT_STATUS_ACTIVE
57-
55+
const hasReviewedOrActivePhases = !!_.find(phases, (phase) => _.includes([PHASE_STATUS_REVIEWED, PHASE_STATUS_ACTIVE], phase.status))
56+
const projectCanBeActive = (project.status !== PROJECT_STATUS_ACTIVE && hasReviewedOrActivePhases) || project.status === PROJECT_STATUS_ACTIVE
57+
5858

5959
// prepare review button
6060
const showReviewBtn = project.status === 'draft' &&
@@ -63,10 +63,10 @@ class ProjectInfo extends Component {
6363
const reviewButtonSection = (
6464
<div className="project-info-review">
6565
<p>
66-
Your project "{_.unescape(project.name)}" has been drafted.
67-
If you have your requirements documented, just verify it against our checklist and then upload it on the <Link to={`/projects/${project.id}/scope`}>Scope</Link> section.
68-
Once you've finalized your scope, select the "Submit for Review" button.
69-
Topcoder will then review your drafted project and will assign a manager to get your delivery in-progress!
66+
Your project "{_.unescape(project.name)}" has been drafted.
67+
If you have your requirements documented, just verify it against our checklist and then upload it on the <Link to={`/projects/${project.id}/scope`}>Scope</Link> section.
68+
Once you've finalized your scope, select the "Submit for Review" button.
69+
Topcoder will then review your drafted project and will assign a manager to get your delivery in-progress!
7070
Get stuck or need help? Email us at <a href="mailto:support@topcoder.com">support@topcoder.com</a>.
7171
</p>
7272
<ReviewProjectButton project={project} onClick={onSubmitForReview} disabled={isProjectProcessing} />

0 commit comments

Comments
 (0)