From 40ac50fbc42438aefd2ff2ba0326e0695f4db057 Mon Sep 17 00:00:00 2001 From: LT Date: Sat, 14 Dec 2024 18:29:23 +0300 Subject: [PATCH] fix: Menu --- src/MenuManager/src/MenuDivider.php | 2 +- src/MenuManager/src/MenuGroup.php | 2 +- src/MenuManager/src/MenuItem.php | 2 +- src/UI/resources/views/components/table/builder.blade.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MenuManager/src/MenuDivider.php b/src/MenuManager/src/MenuDivider.php index 0ffcfc6ba..4c7ab2f4b 100644 --- a/src/MenuManager/src/MenuDivider.php +++ b/src/MenuManager/src/MenuDivider.php @@ -25,7 +25,7 @@ public function isActive(): bool return false; } - public function viewData(): array + protected function viewData(): array { return [ 'label' => $this->getLabel(), diff --git a/src/MenuManager/src/MenuGroup.php b/src/MenuManager/src/MenuGroup.php index fcfad3130..d522e7caa 100644 --- a/src/MenuManager/src/MenuGroup.php +++ b/src/MenuManager/src/MenuGroup.php @@ -51,7 +51,7 @@ public function isActive(): bool return false; } - public function viewData(): array + protected function viewData(): array { return [ 'items' => $this->getItems(), diff --git a/src/MenuManager/src/MenuItem.php b/src/MenuManager/src/MenuItem.php index c39da4452..063a3a2fe 100644 --- a/src/MenuManager/src/MenuItem.php +++ b/src/MenuManager/src/MenuItem.php @@ -191,7 +191,7 @@ protected function prepareBeforeRender(): void /** * @throws Throwable */ - public function viewData(): array + protected function viewData(): array { $viewData = [ 'url' => $this->getUrl(), diff --git a/src/UI/resources/views/components/table/builder.blade.php b/src/UI/resources/views/components/table/builder.blade.php index 722676976..7872095f8 100644 --- a/src/UI/resources/views/components/table/builder.blade.php +++ b/src/UI/resources/views/components/table/builder.blade.php @@ -56,7 +56,7 @@ class="js-table-builder-container" @if($columnSelection) -
+
@foreach($columns as $column => $label)