front admin DONE
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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;
|
||||
// });
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user