Commit 076adcf9 authored by mathieso's avatar mathieso

Added manual override for completion.

parent 5666aa97
......@@ -60,31 +60,16 @@
<span :class="exerciseCompletedClass()">
{{ exerciseCompletedLabel() }}
</span>
<!-- <button-->
<!-- class="btn btn-primary dropdown-toggle"-->
<!-- type="button"-->
<!-- id="exerciseCompleted"-->
<!-- title="Has the student completed the exercise?"-->
<!-- data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"-->
<!-- :disabled="submissionGraded"-->
<!-- >-->
<!-- <span :class="exerciseCompletedClass()">-->
<!-- {{ exerciseCompletedLabel() }}-->
<!-- </span>-->
<!-- <span class="caret"></span>-->
<!-- </button>-->
<!-- <ul class="dropdown-menu" aria-labelledby="exerciseCompleted">-->
<!-- <li>-->
<!-- <a @click="exerciseCompletedClicked" data-completed="true" href="#"-->
<!-- >Complete</a>-->
<!-- </li>-->
<!-- <li>-->
<!-- <a @click="exerciseCompletedClicked" data-completed="false" href="#"-->
<!-- >Not complete</a>-->
<!-- </li>-->
<!-- </ul>-->
<button
class="btn btn-sm btn-primary"
title="Override completion (toggle)"
@click="toggleComplete"
>Override
</button>
</div>
</div>
<div class="cp-row feedback-button-row"> <!-- CP third line -->
......@@ -204,6 +189,16 @@
// },
},
methods: {
toggleComplete() {
let complete = window.submissions[this.submissionId].exerciseCompleted;
complete = !complete;
window.submissions[this.submissionId].exerciseCompleted = complete;
alert('boo');
this.$forceUpdate();
// let label = complete ? 'Complete' : 'Not complete';
//Update data store.
},
//Return this submission's overall evaluation.
overallEvaluation() {
let result = window.submissions[this.submissionId].overallEvaluation
......
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