Fixed minor bug caused by code style cleanup

This commit is contained in:
PMKuipers 2024-06-28 17:27:56 +02:00
parent 675455630d
commit 4cc04371a0
5 changed files with 25 additions and 11918 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

11912
amd/build/vue/vue.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3205,8 +3205,8 @@ export default {
return {
students: 10,
completed: 2,
'completed_pass': 2,
'completed_fail': 2,
completedPass: 2,
completedFail: 2,
ungraded: 2,
};
},
@ -3225,6 +3225,20 @@ export default {
}
},
computed: {
completedPass() {
if (this.value.completed_pass) {
return this.value.completed_pass;
} else {
return this.value.completedPass;
}
},
completedFail() {
if (this.value.completed_fail) {
return this.value.completed_fail;
} else {
return this.value.completedFail;
}
},
radius() {
return 50 - (50 * this.stroke);
},
@ -3267,8 +3281,8 @@ export default {
fractionIncomplete() {
if (this.value.students > 0) {
return 1 - (
(this.value.completed + this.value.completed_pass +
this.value.completed_fail + this.value.ungraded) / this.value.students);
(this.value.completed + this.completedPass +
this.completedFail + this.value.ungraded) / this.value.students);
} else {
return 1;
}
@ -3282,14 +3296,14 @@ export default {
},
fractionCompletedPass() {
if (this.value.students > 0) {
return this.value.completed_pass / this.value.students;
return this.completedPass / this.value.students;
} else {
return 0;
}
},
fractionCompletedFail() {
if (this.value.students > 0) {
return this.value.completed_fail / this.value.students;
return this.completedFail / this.value.students;
} else {
return 0;
}