Skip to content

Commit dafce76

Browse files
committed
Make sidebar labels and groups configurable
1 parent 435fbff commit dafce76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Composers/SidebarViewComposer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public function compose(View $view): void
1414
if (Gate::denies('read places')) {
1515
return;
1616
}
17-
$view->offsetGet('sidebar')->group(__('Content'), function (SidebarGroup $group): void {
17+
$view->offsetGet('sidebar')->group(__(config('typicms.modules.places.sidebar.group', 'Content')), function (SidebarGroup $group): void {
1818
$group->id = 'content';
1919
$group->weight = 30;
20-
$group->addItem(__('Places'), function (SidebarItem $item): void {
20+
$group->addItem(__(config('typicms.modules.places.sidebar.label', 'Places')), function (SidebarItem $item): void {
2121
$item->id = 'places';
2222
$item->icon = config('typicms.modules.places.sidebar.icon');
2323
$item->weight = config('typicms.modules.places.sidebar.weight');

0 commit comments

Comments
 (0)