Added an parameter to enable/disable the root node in the sidebar

Fixes issue #158
This commit is contained in:
Jan Böhmer 2022-08-13 01:46:53 +02:00
parent e8e1da9c61
commit 796dea33f2
3 changed files with 6 additions and 2 deletions

View file

@ -48,6 +48,7 @@ parameters:
- devices
- tools
partdb.sidebar.root_expanded: true # If this is set to true, the root node of the sidebar is expanded by default
partdb.sidebar.root_node_enable: true # Put all entities below a root node in the sidebar
######################################################################################################################
# Miscellaneous

View file

@ -205,6 +205,7 @@ services:
App\Services\Trees\TreeViewGenerator:
arguments:
$rootNodeExpandedByDefault: '%partdb.sidebar.root_expanded%'
$rootNodeEnabled: '%partdb.sidebar.root_node_enable%'
####################################################################################################################
# Symfony overrides