diff --git a/client/src/components/EvaluationResults.vue b/client/src/components/EvaluationResults.vue index bd85e4ff..9f67d46d 100644 --- a/client/src/components/EvaluationResults.vue +++ b/client/src/components/EvaluationResults.vue @@ -10,27 +10,25 @@ export default { }, computed: { orderedResults() { + console.log(this.results); return Object.entries(this.results).sort((first, second) => first[1] < second[1]); }, }, methods: { - convertOverallQualityToColor(text = true) { - return this.convertValueToColor(1 - this.results.overall_quality, text); - }, convertValueToColor(value, text = true) { const colors = [ - 'green darken-4', - 'green darken-2', - 'green lighten-1', - 'light-green lighten-1', - 'lime lighten-1', - 'amber darken-1', - 'orange lighten-1', - 'orange darken-2', - 'orange darken-4', - 'red darken-2', 'red darken-4', - 'black']; + 'red darken-2', + 'orange darken-4', + 'orange darken-2', + 'orange lighten-1', + 'amber darken-1', + 'lime lighten-1', + 'light-green lighten-1', + 'green lighten-1', + 'green darken-2', + 'green darken-4', + ]; const thisColor = colors[Math.floor(Math.abs(value) * (colors.length - 1)) % colors.length]; if (text) { return `font-weight-bold ${thisColor.replace(' ', '--text text--')}`; @@ -43,7 +41,7 @@ export default {