Skip to content

Commit

Permalink
refactor(frontend): add condition to display/hide
Browse files Browse the repository at this point in the history
Check all config related to block if any exist
hide block of information

Reviewed-by: andriacap
  • Loading branch information
andriacap committed Aug 28, 2024
1 parent bdb09d4 commit e5df71d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
</div>
</div>
<div class="panel panel-container panel-top">
<div class="panel panel-container panel-top" *ngIf="isExistBlockToDisplay">
<mat-tab-group>
<mat-tab
*ngIf="config.HOME.DISPLAY_LATEST_DISCUSSIONS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export class HomeContentComponent implements OnInit, AfterViewInit {
this.destroy$.unsubscribe();
}

get isExistBlockToDisplay(): boolean {
return this.config.HOME.DISPLAY_LATEST_DISCUSSIONS; // NOTES [projet ARB]: ajouter les autres config à afficher ici || this.config.HOME.DISPLAY_LATEST_VALIDATIONS ..;
}

private computeMapBloc() {
this.cluserOrSimpleFeatureGroup.addTo(this._mapService.map);
this._syntheseApi
Expand Down

0 comments on commit e5df71d

Please sign in to comment.