entite are opening well in all modes
This commit is contained in:
@@ -4,7 +4,7 @@ import { mapActions, mapState } from 'pinia'
|
||||
import { ConcernementsStore } from '@stores/concernements'
|
||||
|
||||
export default {
|
||||
props: ['entite', 'eid'],
|
||||
props: ['concernement', 'entite', 'eid'],
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export default {
|
||||
'ct_entite']),
|
||||
field_menace_maintien_label (){
|
||||
let str;
|
||||
if (this.opened_concernement.entites_byid[this.eid].menacemaintien < 0) {
|
||||
if (this.concernement.entites_byid[this.eid].menacemaintien < 0) {
|
||||
str = this.ct_entite.field_menace_maintien.description.replace('/maintient', '')
|
||||
} else {
|
||||
str = this.ct_entite.field_menace_maintien.description.replace('menace/', '')
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
},
|
||||
field_sources_label () {
|
||||
let str;
|
||||
if (this.opened_concernement.entites_byid[this.eid].menacemaintien < 0) {
|
||||
if (this.concernement.entites_byid[this.eid].menacemaintien < 0) {
|
||||
str = this.ct_entite.field_sources.description.replace('/ ce maintient', '')
|
||||
} else {
|
||||
str = this.ct_entite.field_sources.description.replace('cette menace /', '')
|
||||
|
Reference in New Issue
Block a user