Commit 653217de authored by Adrià Labay's avatar Adrià Labay
Browse files

correct spelling

parent 3fc2fa72
...@@ -771,7 +771,7 @@ class ExamTemplated extends React.Component { ...@@ -771,7 +771,7 @@ class ExamTemplated extends React.Component {
) )
} }
onFinalise = () => { onFinalize = () => {
this.props.updateExam() this.props.updateExam()
// needed to enable tabs in navbar // needed to enable tabs in navbar
this.props.updateExamList() this.props.updateExamList()
...@@ -785,7 +785,7 @@ class ExamTemplated extends React.Component { ...@@ -785,7 +785,7 @@ class ExamTemplated extends React.Component {
return ( return (
<PanelFinalize <PanelFinalize
examID={this.props.examID} examID={this.props.examID}
onFinalise={this.onFinalise} onFinalize={this.onFinalize}
deleteExam={this.props.deleteExam}> deleteExam={this.props.deleteExam}>
<p className='content' dangerouslySetInnerHTML={{__html: ExamFinalizeMarkdown}} /> <p className='content' dangerouslySetInnerHTML={{__html: ExamFinalizeMarkdown}} />
</PanelFinalize> </PanelFinalize>
......
...@@ -208,7 +208,7 @@ class PanelEditUnstructured extends React.Component { ...@@ -208,7 +208,7 @@ class PanelEditUnstructured extends React.Component {
} }
} }
onFinalise = () => { onFinalize = () => {
this.props.updateExam() this.props.updateExam()
// needed to enable tabs in navbar // needed to enable tabs in navbar
this.props.updateExamList() this.props.updateExamList()
...@@ -309,7 +309,7 @@ class PanelEditUnstructured extends React.Component { ...@@ -309,7 +309,7 @@ class PanelEditUnstructured extends React.Component {
{!this.state.exam.finalized && {!this.state.exam.finalized &&
<PanelFinalize <PanelFinalize
examID={this.props.examID} examID={this.props.examID}
onFinalise={this.onFinalise} onFinalize={this.onFinalize}
deleteExam={this.props.deleteExam}> deleteExam={this.props.deleteExam}>
Finalized exams cannot be deleted. Finalized exams cannot be deleted.
Take care to not delete or add pages after finalization. Take care to not delete or add pages after finalization.
......
...@@ -25,7 +25,7 @@ class PanelFinalize extends React.Component { ...@@ -25,7 +25,7 @@ class PanelFinalize extends React.Component {
finalize = () => { finalize = () => {
api.put(`exams/${this.state.examID}`, { finalized: true }) api.put(`exams/${this.state.examID}`, { finalized: true })
.then(() => { .then(() => {
this.props.onFinalise() this.props.onFinalize()
this.setState({ previewing: false }) this.setState({ previewing: false })
}) })
} }
......
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