point bleu entite ouverte #2256

This commit is contained in:
2023-07-19 12:55:57 +02:00
parent 4800d99ed7
commit 2bea597981
3 changed files with 32 additions and 5 deletions

View File

@@ -57,6 +57,7 @@ export default {
'concernements',
'concernementsByID',
'opened_concernement',
'opened_entite_id',
'opened_recit'
]),
...mapState(CommonStore,['map_item_ray']),
@@ -173,7 +174,9 @@ export default {
console.log(`symbol instance o.type:${o.type}, oitem`, oitem);
switch (o.type) {
case 'entite':
oitem.definition = this.paper_symbol_definitions.entite;
if (!this.opened_entite_id || this.opened_entite_id !== oitem.item_id) {
oitem.definition = this.paper_symbol_definitions.entite;
}
break;
case 'besoin':
oitem.definition = this.paper_symbol_definitions.besoin;
@@ -182,7 +185,9 @@ export default {
oitem.definition = this.paper_symbol_definitions.reponse;
break;
case 'entite_action':
oitem.definition = this.paper_symbol_definitions.entite_action;
if (!this.opened_entite_id || this.opened_entite_id !== oitem.item_id) {
oitem.definition = this.paper_symbol_definitions.entite_action;
}
break;
}
}