fixing and cleaning
This commit is contained in:
@@ -29,7 +29,8 @@ export default {
|
||||
} else if (this.infos.type === 'reponse') {
|
||||
for (let i = 0; i < this.allBesoinsById[this.infos.bid].reponses.length; i++) {
|
||||
if (this.allBesoinsById[this.infos.bid].reponses[i].id === this.infos.id) {
|
||||
this.reponse = this.allBesoinsById[this.infos.bid].reponses[i][this.infos.field];
|
||||
this.reponse = this.allBesoinsById[this.infos.bid].reponses[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,7 +54,7 @@ export default {
|
||||
} else if(n.type === 'entite') {
|
||||
this.entite = this.allEntitesById[this.infos.id];
|
||||
} else if (n.type === 'besoin') {
|
||||
|
||||
this.besoin = this.allBesoinsById[this.infos.id];
|
||||
} else if (n.type === 'reponse') {
|
||||
|
||||
}
|
||||
@@ -122,7 +123,10 @@ export default {
|
||||
<div v-html="besoin.description"></div>
|
||||
</section>
|
||||
<section v-if="infos.type === 'reponse'" class="reponse-map-popup">
|
||||
<div v-html="reponse"></div>
|
||||
<div v-if="reponse.qui"><label>Qui</label><p v-html="reponse.qui"/></div>
|
||||
<div v-if="reponse.quoi"><label>Quoi</label><p v-html="reponse.quoi"/></div>
|
||||
<div v-if="reponse.ou"><label>Où</label><p v-html="reponse.ou"/></div>
|
||||
<div v-if="reponse.avec"><label>Avec</label><p v-html="reponse.avec"/></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user