Skip to content

Commit

Permalink
Completely hide forking exercise for now
Browse files Browse the repository at this point in the history
  • Loading branch information
SemaiCZE committed Nov 3, 2017
1 parent 8f84342 commit 96f63ea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions src/components/Groups/HierarchyLine/HierarchyLine.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
border-color: #f5f5f5;
color: grey;
}

.slashStyle {
margin: 0 5px;
color: #aaa;
}
2 changes: 1 addition & 1 deletion src/components/Groups/HierarchyLine/HierarchyLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const HierarchyLine = ({ groupId, parentGroupsIds }) =>
i !== 0 &&
<span key={i}>
<GroupsNameContainer groupId={groupId} />{' '}
<span style={{ margin: '0 5px', color: '#aaa' }}>/</span>
<span className="slashStyle">/</span>
</span>
)}
<GroupsNameContainer groupId={groupId} noLink />
Expand Down
2 changes: 0 additions & 2 deletions src/components/forms/ForkExerciseForm/ForkExerciseForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class ForkExerciseForm extends Component {
name: group.name
}))
)}
disabled
/>}
</ResourceRenderer>

Expand Down Expand Up @@ -120,7 +119,6 @@ class ForkExerciseForm extends Component {
/>
)
}}
disabled
/>
</Form>
</div>
Expand Down
17 changes: 9 additions & 8 deletions src/pages/Exercise/Exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
} from '../../components/icons';
import Confirm from '../../components/forms/Confirm';
import PipelinesSimpleList from '../../components/Pipelines/PipelinesSimpleList';
import ForkExerciseForm from '../../components/forms/ForkExerciseForm';
// import ForkExerciseForm from '../../components/forms/ForkExerciseForm';
import AssignExerciseButton from '../../components/buttons/AssignExerciseButton';

import { isSubmitting } from '../../redux/selectors/submission';
Expand Down Expand Up @@ -139,12 +139,12 @@ class Exercise extends Component {
initCreateReferenceSolution,
exercisePipelines,
deleteReferenceSolution,
push,
groups,
forkExercise
push
// groups,
// forkExercise
} = this.props;

const { forkId } = this.state;
// const { forkId } = this.state;

const {
links: {
Expand Down Expand Up @@ -219,12 +219,12 @@ class Exercise extends Component {
/>
</Button>
</LinkContainer>
<ForkExerciseForm
{/* <ForkExerciseForm
exerciseId={exercise.id}
groups={groups}
forkId={forkId}
onSubmit={formData => forkExercise(forkId, formData)}
/>
/> */}
</ButtonGroup>
</div>}
<p />
Expand Down Expand Up @@ -481,7 +481,8 @@ export default withLinks(
};
},
(dispatch, { params: { exerciseId } }) => ({
loadAsync: userId => Exercise.loadAsync({ exerciseId }, dispatch, userId),
loadAsync: userId =>
Exercise.loadAsync({ exerciseId }, dispatch, userId),
assignExercise: groupId =>
dispatch(assignExercise(groupId, exerciseId)),
push: url => dispatch(push(url)),
Expand Down

0 comments on commit 96f63ea

Please sign in to comment.