Skip to content
Snippets Groups Projects

Toggling pregrading and Identifying blank solutions

Open Ghost User requested to merge feature/toggle-pregrading into develop
Compare and Show latest version
40 files
+ 946
938
Compare changes
  • Side-by-side
  • Inline
Files
40
@@ -90,9 +90,8 @@ class PanelMCQ extends React.Component {
nrPossibleAnswers: 2,
chosenLabelType: value
}, () => {
this.updateNumberOptions()
let labels = this.generateLabels(this.state.nrPossibleAnswers, 0)
this.props.updateLabels(labels)
this.updateNumberOptions().then(() => this.props.updateLabels(labels))
})
} else {
this.setState({
@@ -116,7 +115,7 @@ class PanelMCQ extends React.Component {
switch (type) {
case 1:
return ['T', 'F']
return ['T', 'F'].slice(startingAt)
case 2:
return Array.from(Array(nrLabels).keys()).map(
(e) => String.fromCharCode(e + 65 + startingAt))
Loading