Skip to content

Commit 7efc50a

Browse files
committed
Refactor to solution-forest/filament-tree: fix actions
1 parent f230c6d commit 7efc50a

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/Resources/MenuResource/Pages/ManageMenuItems.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Statikbe\FilamentFlexibleContentBlockPages\Resources\MenuResource\Pages;
44

5+
use Filament\Actions\CreateAction;
56
use Filament\Actions\LocaleSwitcher;
67
use Illuminate\Database\Eloquent\Model;
7-
use SolutionForest\FilamentTree\Actions\Action;
88
use SolutionForest\FilamentTree\Actions\DeleteAction;
99
use SolutionForest\FilamentTree\Actions\EditAction;
1010
use SolutionForest\FilamentTree\Concern\TreeRecords\Translatable;
@@ -50,21 +50,15 @@ public function getTitle(): string
5050

5151
public function getBreadcrumb(): string
5252
{
53-
// TODO fix
5453
return flexiblePagesTrans('menu_items.manage.breadcrumb');
5554
}
5655

57-
protected function getHeaderActions(): array
58-
{
59-
return [
60-
LocaleSwitcher::make(),
61-
];
62-
}
63-
6456
protected function getActions(): array
6557
{
6658
return [
67-
Action::make('create')
59+
LocaleSwitcher::make(),
60+
CreateAction::make()
61+
->label(flexiblePagesTrans('menu_items.tree.add_item'))
6862
->mountUsing(
6963
fn ($arguments, $form, $model) => $form->fill([
7064
'menu_id' => $this->record->id,

0 commit comments

Comments
 (0)