Commit 076adcf9 authored by mathieso's avatar mathieso

Added manual override for completion.

parent 5666aa97
...@@ -60,31 +60,16 @@ ...@@ -60,31 +60,16 @@
<span :class="exerciseCompletedClass()"> <span :class="exerciseCompletedClass()">
{{ exerciseCompletedLabel() }} {{ exerciseCompletedLabel() }}
</span> </span>
<!-- <button--> <button
<!-- class="btn btn-primary dropdown-toggle"--> class="btn btn-sm btn-primary"
<!-- type="button"--> title="Override completion (toggle)"
<!-- id="exerciseCompleted"--> @click="toggleComplete"
<!-- title="Has the student completed the exercise?"--> >Override
<!-- data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"--> </button>
<!-- :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>-->
</div> </div>
</div> </div>
<div class="cp-row feedback-button-row"> <!-- CP third line --> <div class="cp-row feedback-button-row"> <!-- CP third line -->
...@@ -204,6 +189,16 @@ ...@@ -204,6 +189,16 @@
// }, // },
}, },
methods: { 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. //Return this submission's overall evaluation.
overallEvaluation() { overallEvaluation() {
let result = window.submissions[this.submissionId].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