From 91dfd5197b510c277ff0992d5aa78fe411b2246a Mon Sep 17 00:00:00 2001 From: karine Date: Tue, 23 Apr 2024 21:40:00 -0300 Subject: [PATCH] fix(heuristics): corrected some details on final report view of heuristics --- .../atoms/FinalReportSelectionBox.vue | 246 ++++-------------- .../FinalReportDocumentSelection.vue | 11 - src/views/admin/FinalReportView.vue | 12 +- 3 files changed, 59 insertions(+), 210 deletions(-) delete mode 100644 src/components/molecules/FinalReportDocumentSelection.vue diff --git a/src/components/atoms/FinalReportSelectionBox.vue b/src/components/atoms/FinalReportSelectionBox.vue index 4c3d1b5c..b55ad54d 100644 --- a/src/components/atoms/FinalReportSelectionBox.vue +++ b/src/components/atoms/FinalReportSelectionBox.vue @@ -1,67 +1,64 @@ @@ -95,15 +92,6 @@ export default { cooperatorsEmail: [], }), computed: { - sliderValueMin() { - return Number(this.sliderValue) + 1 - }, - sliderValueMax() { - return Math.min(Number(this.sliderValue) + 5, this.heuristics.length) - }, - visibleHeuristics() { - return this.heuristics.slice(Number(this.sliderValue)) - }, testAnswerDocument() { return this.$store.state.Answer.testAnswerDocument }, @@ -151,13 +139,6 @@ export default { ] }, }, - mounted() { - window.addEventListener('resize', this.checkHeuristicsSlider) - this.checkHeuristicsSlider() - }, - beforeDestroy() { - window.removeEventListener('resize', this.checkHeuristicsSlider) - }, methods: { heuristicsEvaluator() { const table = { @@ -214,7 +195,6 @@ export default { checkHeuristicsSlider() { const containerWidth = this.$el.querySelector('.column').offsetWidth const heuristicWidth = 200 - const numVisibleHeuristics = Math.floor(containerWidth / heuristicWidth) this.showSlider = this.heuristics.length }, @@ -376,117 +356,3 @@ export default { }, } - - diff --git a/src/components/molecules/FinalReportDocumentSelection.vue b/src/components/molecules/FinalReportDocumentSelection.vue deleted file mode 100644 index 129e6678..00000000 --- a/src/components/molecules/FinalReportDocumentSelection.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/src/views/admin/FinalReportView.vue b/src/views/admin/FinalReportView.vue index 631cf79e..013ce4f4 100644 --- a/src/views/admin/FinalReportView.vue +++ b/src/views/admin/FinalReportView.vue @@ -49,13 +49,7 @@
- - - - - {{ $t('buttons.previous') }} - - +
@@ -65,11 +59,11 @@