front admin DONE

This commit is contained in:
2024-05-29 19:59:39 +02:00
parent 46599a1ec0
commit c9655a1e49
3 changed files with 21 additions and 16 deletions

View File

@@ -349,6 +349,7 @@ export default {
// do not trigger on first fill of the property (if o is null)
if (o) {
this.resetPaperEntitesAndContours();
this.resetPaperEntitesProximite();
}
},
deep: true
@@ -1198,6 +1199,14 @@ export default {
}
return g;
},
resetPaperEntitesProximite(){
if (this.paper_main_object.children['entites_proximites']) {
this.paper_main_object.children['entites_proximites'].remove();
}
if (this.concernement.has_proximites) {
this.paper_main_object.addChild(this.setPaperEntitesProximite());
}
},
setPaperEntitesProximiteReferences(){
console.log('setPaperEntitesProximiteReferences')
let g = new paper.Group({

View File

@@ -276,21 +276,6 @@ export default {
.then(() => {
this.reloading_concernements = false;
});
// TODO reset the user entites liste caching
// this.getUserEntitees()
// .then(() => {
// console.log('added entite, user entites reloaded');
// })
// .catch(error => {
// console.warn('Issue with graphql userentites loading', error);
// })
// this.reloadConcernements()
// .then(() => {
// this.reloading_concernements = false;
// });
})
})
})