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