From 4bfbbfab50874a208c7aecf0e27a3670279a4e16 Mon Sep 17 00:00:00 2001 From: yoution Date: Wed, 11 Aug 2021 21:02:07 +0800 Subject: [PATCH 1/2] fix: change table for customer view --- .../SimplePlan/ManageMilestones/ManageMilestones.jsx | 4 ++-- .../components/MilestoneHeaderRow/MilestoneHeaderRow.jsx | 2 +- .../SimplePlan/components/MilestoneRow/MilestoneRow.jsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx b/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx index e63f2aaad..d912b3168 100644 --- a/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx +++ b/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx @@ -181,7 +181,7 @@ class ManageMilestones extends React.Component { const { isUpdatable } = this.props - if (!this.isExpandChallengeList(milestone)) { + if (!isUpdatable ||!this.isExpandChallengeList(milestone)) { return } @@ -258,7 +258,7 @@ class ManageMilestones extends React.Component {
*/} - {canEdit ?
+ {this.getSelectCount() > 0 ?
{this.getSelectCount()} PROJECTS SELECTED
: null } {canEdit ?
: null} diff --git a/src/projects/detail/components/SimplePlan/components/MilestoneHeaderRow/MilestoneHeaderRow.jsx b/src/projects/detail/components/SimplePlan/components/MilestoneHeaderRow/MilestoneHeaderRow.jsx index b49df0870..7e940a433 100644 --- a/src/projects/detail/components/SimplePlan/components/MilestoneHeaderRow/MilestoneHeaderRow.jsx +++ b/src/projects/detail/components/SimplePlan/components/MilestoneHeaderRow/MilestoneHeaderRow.jsx @@ -31,7 +31,7 @@ function MilestoneHeaderRow ({ milestones, onChangeMilestones, isUpdatable }) { return ( - + {isUpdatable ? : null} - + {isUpdatable ? : null} ) : ( - onExpand(!isExpand, milestone)}>{isExpand ? : } + {isUpdatable ? onExpand(!isExpand, milestone)}>{isExpand ? : }: null} Date: Fri, 13 Aug 2021 19:24:36 +0800 Subject: [PATCH 2/2] fix: issue #4450, #4451, #4452, #4454 --- .../ManageMilestones/ManageMilestones.jsx | 13 +------------ .../ConfirmMoveMilestoneDate.scss | 1 + .../MilestoneMoveDateButton.scss | 1 + .../components/MilestoneRow/MilestoneRow.scss | 4 ++++ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx b/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx index d912b3168..b781ea3f5 100644 --- a/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx +++ b/src/projects/detail/components/SimplePlan/ManageMilestones/ManageMilestones.jsx @@ -259,7 +259,7 @@ class ManageMilestones extends React.Component {
*/} {this.getSelectCount() > 0 ?
- {this.getSelectCount()} PROJECTS SELECTED + {this.getSelectCount()} PROJECT(S) SELECTED
: null } {canEdit ?
: null} { canEdit ?
@@ -284,17 +284,6 @@ class ManageMilestones extends React.Component {
- - - {/* CHECKBOX */} - {/* MILESTONE */} - {/* DESCRIPTION */} - {/* START DATE */} - {/* END DATE */} - {/* STATUS */} - {/* COPILOTS */} - {isUpdatable && ()}{/* ACTION */} - input { height: 26px; + line-height: 26px; width: 80px; margin: 0 10px 0 0; } diff --git a/src/projects/detail/components/SimplePlan/components/MilestoneMoveDateButton/MilestoneMoveDateButton.scss b/src/projects/detail/components/SimplePlan/components/MilestoneMoveDateButton/MilestoneMoveDateButton.scss index 4674861de..3071ee19a 100644 --- a/src/projects/detail/components/SimplePlan/components/MilestoneMoveDateButton/MilestoneMoveDateButton.scss +++ b/src/projects/detail/components/SimplePlan/components/MilestoneMoveDateButton/MilestoneMoveDateButton.scss @@ -3,6 +3,7 @@ height: 14px; padding: 0; border: 0; + margin: 0 8px; cursor: pointer; svg { diff --git a/src/projects/detail/components/SimplePlan/components/MilestoneRow/MilestoneRow.scss b/src/projects/detail/components/SimplePlan/components/MilestoneRow/MilestoneRow.scss index e8499cb1d..f6a997f9c 100644 --- a/src/projects/detail/components/SimplePlan/components/MilestoneRow/MilestoneRow.scss +++ b/src/projects/detail/components/SimplePlan/components/MilestoneRow/MilestoneRow.scss @@ -153,5 +153,9 @@ > *:not(:last-child) { margin-right: 10px; } + svg { + width: 14px; + height: 14px; + } } }