Only show course description character count over 3000

master
Tanner Collin 4 years ago
parent 94a296744c
commit 0f39901c76
  1. 7
      webclient/src/InstructorCourses.js

@ -44,7 +44,12 @@ function InstructorCourseEditor(props) {
/>
<Form.Field>
<label>Description {input.description ? input.description.length : 0} / 6000</label>
<label>
Description
{input.description && input.description.length > 3000 && (
' — ' + (input.description.length+' / 6000')
)}
</label>
<ReactQuill
value={input.description || ''}
modules={modules}

Loading…
Cancel
Save