bug fix
This commit is contained in:
parent
568d941d90
commit
b5aaeeeb6b
@ -195,27 +195,26 @@ export default {
|
|||||||
this.handlePaperVisibilityOnMapMode()
|
this.handlePaperVisibilityOnMapMode()
|
||||||
}
|
}
|
||||||
if(this.mapitem.clone){
|
if(this.mapitem.clone){
|
||||||
let state = false;
|
let is_visible = false;
|
||||||
if(n === 'superposition'){
|
if(n === 'superposition'){
|
||||||
// superposition mapemode all clones are visible
|
// superposition mapemode all clones are visible
|
||||||
state = true;
|
is_visible = true;
|
||||||
}else{
|
}else{
|
||||||
if(this.opened_concernement){
|
if(this.opened_concernement){
|
||||||
if(this.mapitem.is_open){
|
if(this.mapitem.is_open){
|
||||||
state = true;
|
is_visible = true;
|
||||||
}else{
|
}else{
|
||||||
|
// keep open the clones that are superposed to the opend map_item
|
||||||
let opened_mapitem_id = this.opened_concernement.opened_mapitem_id;
|
let opened_mapitem_id = this.opened_concernement.opened_mapitem_id;
|
||||||
if(this.opened_concernement.superposed_mapitem_id_by_mapitem_id[opened_mapitem_id].indexOf(this.mapitem.id) !== -1){
|
if (this.opened_concernement.superposed_mapitem_id_by_mapitem_id && this.opened_concernement.superposed_mapitem_id_by_mapitem_id[opened_mapitem_id]) {
|
||||||
state = true;
|
if(this.opened_concernement.superposed_mapitem_id_by_mapitem_id[opened_mapitem_id].indexOf(this.mapitem.id) !== -1){
|
||||||
|
is_visible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(state){
|
this.handleMapitemVisibility(is_visible);
|
||||||
this.handleMapitemVisibility(true);
|
|
||||||
}else{
|
|
||||||
this.handleMapitemVisibility(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user