Commit eec02084 authored by Matt Glorion's avatar Matt Glorion
Browse files

[CLN] 馃Ч refacto, typo on detailled

parent 5140ab73
......@@ -89,9 +89,9 @@ export default {
});
},
exportResults,
display_results_detailled_view(choice) {
this.$root.$emit("display_results_detailled_view", choice);
this.$root.$emit("re_render_results_detailled");
display_results_detailed_view(choice) {
this.$root.$emit("display_results_detailed_view", choice);
this.$root.$emit("re_render_results_detailed");
},
},
computed: {
......
import jsPDF from "jspdf";
import store from "../store/MainStore.js";
import { sections_comparatif, journey_options } from "../options/options.js";
import { detailled_results_text } from "../options/detailled_results_text.js";
import { detailed_results_text } from "../options/detailed_results_text.js";
export function exportResults() {
let pdfName = "impactometre-resultats";
......@@ -102,7 +102,7 @@ export function exportResults() {
doc.setFont("Helvetica", "");
doc.setFontSize(8);
var sectionText = detailled_results_text[sections_comparatif[index].name];
var sectionText = detailed_results_text[sections_comparatif[index].name];
// var splitText = doc.splitTextToSize(sectionText,100);
doc.text(sectionText, 100, line + 4);
......
......@@ -16,7 +16,7 @@ var datasets = function () {
];
};
var datasets_detailled = function () {
var datasets_detailed = function () {
return [
{
label: "Mat茅riel",
......@@ -59,20 +59,20 @@ const state = {
},
impact_on_spheres_detailed: {
HUMAN_HEALTH: {
labels: labels_detailled,
datasets: datasets_detailled(),
labels: labels_detailed,
datasets: datasets_detailed(),
},
ECOSYSTEM_QUALITY: {
labels: labels_detailled,
datasets: datasets_detailled(),
labels: labels_detailed,
datasets: datasets_detailed(),
},
CLIMATE_CHANGE: {
labels: labels_detailled,
datasets: datasets_detailled(),
labels: labels_detailed,
datasets: datasets_detailed(),
},
RESOURCES: {
labels: labels_detailled,
datasets: datasets_detailled(),
labels: labels_detailed,
datasets: datasets_detailed(),
},
},
};
......
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