Skip to content
Snippets Groups Projects
Commit d1e62438 authored by sebastien dupuy's avatar sebastien dupuy
Browse files

correctif issue_14 des couleurs de la progress-bar (rouge jaune vert)

parent dfe3bff9
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="card-body"> <div class="card-body">
<PolarArea :chart-data="chartData" :chart-options="options" /> <PolarArea :chart-data="chartData" :chart-options="options" />
<div class="row"> <div class="row">
<div v-for="t in territories" :key="t.id" :class="`col-mt-4 mt-4 ${territories.length > 1 ? 'border-right' : ''}`"> <div v-for="t in territories" :key="t.id" :class="`col-md-4 col-sm-12 mt-4 ${territories.length > 1 ? 'border-right' : ''}`">
<b>{{ t.name }}</b> <br/> <b>{{ t.name }}</b> <br/>
<small>Indice de maturité cyber</small> <br/> <small>Indice de maturité cyber</small> <br/>
<span v-if="t.organizations.length"> {{ Math.round(t.current_maturity_cyber * 10)/10 }}</span> <span v-else>-</span> <span v-if="t.organizations.length"> {{ Math.round(t.current_maturity_cyber * 10)/10 }}</span> <span v-else>-</span>
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<div class="progress progress-xs my-1"> <div class="progress progress-xs my-1">
<div <div
class="progress-bar" class="progress-bar"
:class="measure.max_levels[0] === 1 ? 'bg-danger' : measure.max_levels[0] === 2 ? 'bg-info' : measure.max_levels[0] === 3 ? 'bg-success' : 'black'"
role="progressbar" role="progressbar"
:style="{width: measure.max_levels[0] === 1 ? '33%' : measure.max_levels[0] === 2 ? '66%' : measure.max_levels[0] === 3 ? '100%' : '0%'}" :style="{width: measure.max_levels[0] === 1 ? '33%' : measure.max_levels[0] === 2 ? '66%' : measure.max_levels[0] === 3 ? '100%' : '0%',
background: measure.max_levels[0] === 1 ? '#D63F49' : measure.max_levels[0] === 2 ? '#FFC107' : measure.max_levels[0] === 3 ? '#468355' : 'black'}"
aria-valuemin="0" aria-valuemax="100"></div> aria-valuemin="0" aria-valuemax="100"></div>
</div> </div>
<div v-if="organizationsNumber" class="card-text"> <div v-if="organizationsNumber" class="card-text">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment