Prevent class signup when cancelled
This commit is contained in:
parent
5a00f4e492
commit
2e87b0d992
|
@ -219,15 +219,19 @@ export function ClassDetail(props) {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
:
|
||||||
|
(clazz.is_cancelled ?
|
||||||
|
<p>The class is cancelled.</p>
|
||||||
:
|
:
|
||||||
((clazz.max_students && clazz.student_count >= clazz.max_students) ?
|
((clazz.max_students && clazz.student_count >= clazz.max_students) ?
|
||||||
<p>The course is full.</p>
|
<p>The class is full.</p>
|
||||||
:
|
:
|
||||||
<Button onClick={handleSignup}>
|
<Button onClick={handleSignup}>
|
||||||
Sign me up!
|
Sign me up!
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user