Fixed minor bug caused by code style cleanup
This commit is contained in:
parent
675455630d
commit
4cc04371a0
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.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
11912
amd/build/vue/vue.min.js
vendored
11912
amd/build/vue/vue.min.js
vendored
File diff suppressed because one or more lines are too long
1
amd/build/vue/vue.min.js.map
Normal file
1
amd/build/vue/vue.min.js.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -3205,8 +3205,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
students: 10,
|
students: 10,
|
||||||
completed: 2,
|
completed: 2,
|
||||||
'completed_pass': 2,
|
completedPass: 2,
|
||||||
'completed_fail': 2,
|
completedFail: 2,
|
||||||
ungraded: 2,
|
ungraded: 2,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -3225,6 +3225,20 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
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() {
|
radius() {
|
||||||
return 50 - (50 * this.stroke);
|
return 50 - (50 * this.stroke);
|
||||||
},
|
},
|
||||||
|
@ -3267,8 +3281,8 @@ export default {
|
||||||
fractionIncomplete() {
|
fractionIncomplete() {
|
||||||
if (this.value.students > 0) {
|
if (this.value.students > 0) {
|
||||||
return 1 - (
|
return 1 - (
|
||||||
(this.value.completed + this.value.completed_pass +
|
(this.value.completed + this.completedPass +
|
||||||
this.value.completed_fail + this.value.ungraded) / this.value.students);
|
this.completedFail + this.value.ungraded) / this.value.students);
|
||||||
} else {
|
} else {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -3282,14 +3296,14 @@ export default {
|
||||||
},
|
},
|
||||||
fractionCompletedPass() {
|
fractionCompletedPass() {
|
||||||
if (this.value.students > 0) {
|
if (this.value.students > 0) {
|
||||||
return this.value.completed_pass / this.value.students;
|
return this.completedPass / this.value.students;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fractionCompletedFail() {
|
fractionCompletedFail() {
|
||||||
if (this.value.students > 0) {
|
if (this.value.students > 0) {
|
||||||
return this.value.completed_fail / this.value.students;
|
return this.completedFail / this.value.students;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user