Skip to content

Commit 38102b4

Browse files
authored
Merge pull request #4247 from yoution/feature/yoution-issue-4234
fix: issue #4234 for detail page
2 parents e7ef51a + 74dc461 commit 38102b4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/projects/detail/containers/ProjectInfoContainer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ class ProjectInfoContainer extends React.Component {
191191
}
192192

193193
onChangeStatus(projectId, status, reason) {
194+
const {project} = this.props
195+
if (project.status === status) {
196+
return
197+
}
194198
const delta = {status}
195199
if (reason && status === PROJECT_STATUS_CANCELLED) {
196200
delta.cancelReason = reason

src/projects/detail/containers/ProjectInfoContainer.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@
7272
margin-top: 20px;
7373
padding: 5px 0;
7474

75-
76-
7775
:global {
76+
.status-dropdown a.active {
77+
cursor: default;
78+
}
79+
7880
.panel {
7981
// avoid double padding for editable project status
8082
padding: 0;

0 commit comments

Comments
 (0)