Commit e8250501 authored by Adrià Labay's avatar Adrià Labay
Browse files

hide student tab if no exam is selected

parent 3958ce4c
......@@ -210,7 +210,10 @@ class NavBar extends React.Component {
to={`/exams/${this.state.examID}/scans`}
text='Scans'
predicate={[predicateNoExam, predicateExamNotFinalized]} />
<Link className='navbar-item' to={`/exams/${this.state.examID}/students`}>Students</Link>
<TooltipLink
to={`/exams/${this.state.examID}/students`}
text='Students'
predicate={[predicateNoExam]} />
<TooltipLink
to={`/exams/${this.state.examID}/grade`}
text={<strong><i>Grade</i></strong>}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment