Fix side panel display logic
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2021-01-30 09:56:56 +01:00
parent 208dfed7fb
commit 2606de5f0a
1 changed files with 6 additions and 3 deletions

View File

@ -240,9 +240,12 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
ngAfterViewInit() {
console.debug("View init");
if(this.route.children.length == 0) {
this.noContent=true;
}
this.noContent=true;
this.route.children.forEach((entry) => {
if(entry.outlet=="") {
this.noContent=false;
}
});
this.initCustomStyles();