debat sur carte taille maillages

This commit is contained in:
Henintsoa 2021-12-12 21:49:06 +03:00
parent 85c001950a
commit 6a41c25c57
3 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@
<div id="mapContainer">
<img
id="mapImg"
:src="debate.document.mapLink"
:src="debate?.document?.mapLink"
alt="map image"
/>
<table id="myTable" v-if="debate">
@ -116,11 +116,11 @@ table {
border-collapse: collapse;
position: absolute;
top: 0;
width: 100%;
height: 100%;
}
#mapContainer {
position: relative;
height: 50%;
}
#mapImg {
width: 100%;
@ -134,8 +134,6 @@ table {
module.exports = {
data() {
return {
//nbOfLines: 5,
//nbOfColumns: 9,
arrayData: false,
// ********************************

View file

@ -60,7 +60,9 @@
query: categoryId ? {category: categoryId, overview: true} : {overview: true},
onSuccess: debates => debates.forEach(d => {
if (!this.categories.includes(d.document.category)) {
this.categories.push(d.document.category)
if(!(d.document.category.is("CARTO"))){
this.categories.push(d.document.category);
}
}
})
});

View file

@ -15,7 +15,7 @@
class="col"
>
<router-link
v-bind:to="'/debates?category=' + category.id"
v-bind:to="`${category.is('CARTO') ? '/debats-sur-cartes?category=' + category.id : '/debates?category=' + category.id }`"
class="card hoverable center-align"
>
<div class="card-image light-color valign-wrapper">