fixed recording entity when switching or closing entity
This commit is contained in:
parent
cc943c5776
commit
a9e6fe2567
@ -87,7 +87,8 @@ export default {
|
|||||||
'detailsZoomValue',
|
'detailsZoomValue',
|
||||||
'reloadConcernements',
|
'reloadConcernements',
|
||||||
'reloadConcernementEntites',
|
'reloadConcernementEntites',
|
||||||
'concernements_loading_nb']),
|
'concernements_loading_nb',
|
||||||
|
'concernement_is_updating_nid']),
|
||||||
...mapState(CommonStore,['hover_elmt',
|
...mapState(CommonStore,['hover_elmt',
|
||||||
'map_item_ray',
|
'map_item_ray',
|
||||||
'cartouch_width',
|
'cartouch_width',
|
||||||
@ -2630,15 +2631,23 @@ export default {
|
|||||||
case "superposition":
|
case "superposition":
|
||||||
case "action":
|
case "action":
|
||||||
// we have clicked on an entite
|
// we have clicked on an entite
|
||||||
this.$router.push({
|
// unfocus any active element to trigger recording if needed
|
||||||
name: 'concernement',
|
document.activeElement.blur();
|
||||||
params: {cid: this.cid, eid: result.item.item_id},
|
// setInterval to let time for editable fields to focus out and record changes
|
||||||
query: {
|
let interval = setInterval(() => {
|
||||||
mapitemid: this.id,
|
if (!this.concernement_is_updating_nid) {
|
||||||
// superposition_id: this.mapitem.superposition_ids[0]
|
clearInterval(interval);
|
||||||
},
|
this.$router.push({
|
||||||
hash: `#${this.map_mode}`,
|
name: 'concernement',
|
||||||
});
|
params: {cid: this.cid, eid: result.item.item_id},
|
||||||
|
query: {
|
||||||
|
mapitemid: this.id,
|
||||||
|
// superposition_id: this.mapitem.superposition_ids[0]
|
||||||
|
},
|
||||||
|
hash: `#${this.map_mode}`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, 1)
|
||||||
break;
|
break;
|
||||||
case "proximite":
|
case "proximite":
|
||||||
switch (result.item.item_type) {
|
switch (result.item.item_type) {
|
||||||
@ -2669,11 +2678,20 @@ export default {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// otherwise we close the entite and come back to the concernement
|
// otherwise we close the entite and come back to the concernement
|
||||||
this.$router.push({
|
// unfocus any active element to trigger recording if needed
|
||||||
name: 'concernement',
|
document.activeElement.blur();
|
||||||
hash: `#${this.map_mode}`,
|
// setInterval to let time for editable fields to focus out and record changes
|
||||||
params: {id: this.cid, mapitemid: this.id}
|
let interval = setInterval(() => {
|
||||||
});
|
if (!this.concernement_is_updating_nid) {
|
||||||
|
clearInterval(interval);
|
||||||
|
this.$router.push({
|
||||||
|
name: 'concernement',
|
||||||
|
hash: `#${this.map_mode}`,
|
||||||
|
params: {id: this.cid, mapitemid: this.id}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, 1)
|
||||||
|
|
||||||
|
|
||||||
// reset the mousehover
|
// reset the mousehover
|
||||||
this.resetHoverElmt();
|
this.resetHoverElmt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user