Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tx-techno-num
impactometre
Commits
acded07c
Commit
acded07c
authored
Dec 05, 2020
by
Elouan Le Bars
Browse files
[REF] result detailled view headers names
parent
bc6bfc9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/src/components/ResultsDetailledView.vue
View file @
acded07c
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<
script
>
<
script
>
import
ResultsChart
from
"
./ResultsChart.js
"
;
import
ResultsChart
from
"
./ResultsChart.js
"
;
import
store
from
"
../store/MainStore.js
"
;
import
store
from
"
../store/MainStore.js
"
;
import
{
sections_comparatif
}
from
"
../options/options.js
"
;
import
{
detailled_results_text
}
from
"
../options/detailled_results_text.js
"
;
import
{
detailled_results_text
}
from
"
../options/detailled_results_text.js
"
;
//register custom tooltip positioner for chart
//register custom tooltip positioner for chart
...
@@ -86,12 +87,8 @@ export default {
...
@@ -86,12 +87,8 @@ export default {
return
(
sphere
)
=>
store
.
state
.
impact_on_spheres_detailled
[
sphere
];
return
(
sphere
)
=>
store
.
state
.
impact_on_spheres_detailled
[
sphere
];
},
},
title
:
function
()
{
title
:
function
()
{
//TODO: clean this function (code redundancy)
if
(
this
.
selectedView
)
{
switch
(
this
.
selectedView
)
{
return
sections_comparatif
.
find
(
el
=>
el
.
name
==
this
.
selectedView
).
title
;
case
"
HUMAN_HEALTH
"
:
return
"
Impact sur la santé humaine
"
case
"
ECOSYSTEM_QUALITY
"
:
return
"
Impact sur la qualité des écosystèmes
"
case
"
CLIMATE_CHANGE
"
:
return
"
Impact sur le changement climatique
"
case
"
RESOURCES
"
:
return
"
Impact sur les ressources
"
}
}
},
},
detailled_results_text
:
function
()
{
detailled_results_text
:
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment