Skip to content

Commit ac24c7f

Browse files
authored
Merge pull request #4437 from appirio-tech/hotfix/issue-4428-4432
[PROD][HOTFIX]Fix whitespace and Hide Milestones with Draft status from customer view
2 parents 8865e01 + 5737e74 commit ac24c7f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ManageMilestones extends React.Component {
105105
<col style={{ width: '11%' }} />{/* END DATE */}
106106
<col style={{ width: '10%' }} />{/* STATUS */}
107107
<col style={{ width: '12%' }} />{/* BUDGET */}
108-
<col style={{ width: '13%' }} />{/* COPILOTS */}
108+
{/* <col style={{ width: '13%' }} /> */}{/* COPILOTS */}
109109
{isUpdatable && (<col style={{ width: '80px' }} />)}{/* ACTION */}
110110
</colgroup>
111111
<thead>

src/projects/detail/containers/DashboardContainer.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ class DashboardContainer extends React.Component {
304304
</div>
305305
) : (
306306
<div styleName="simple-plan">
307-
{((!hasPermission(PERMISSIONS.MANAGE_PROJECT_PLAN) && (!visiblePhases || visiblePhases.length === 0))
307+
{/* check if visiblePhases/phases is non-null and empty */}
308+
{((!hasPermission(PERMISSIONS.MANAGE_PROJECT_PLAN) && (visiblePhases && visiblePhases.length === 0))
308309
|| (hasPermission(PERMISSIONS.MANAGE_PROJECT_PLAN) &&
309-
(!phases || phases.length === 0) &&
310+
(phases && phases.length === 0) &&
310311
(!this.state.createGameplanPhases || this.state.createGameplanPhases.length === 0))
311312
) && (
312313
<div styleName="welcome-message">
@@ -332,7 +333,7 @@ class DashboardContainer extends React.Component {
332333
isCustomer={!hasPermission(PERMISSIONS.MANAGE_PROJECT_PLAN)}
333334
project={project}
334335
phases={phases}
335-
milestones={this.state.createGameplanPhases || phases}
336+
milestones={this.state.createGameplanPhases || visiblePhases || []}
336337
onChangeMilestones={(milestones) => {
337338
this.setState({createGameplanPhases: milestones})
338339
}}

0 commit comments

Comments
 (0)