Skip to content

Commit f230c6d

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Resources/MenuResource/Pages/ManageMenuItems.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function getHeaderActions(): array
6161
];
6262
}
6363

64-
protected function getTreeActions(): array
64+
protected function getActions(): array
6565
{
6666
return [
6767
Action::make('create')
@@ -77,6 +77,12 @@ protected function getTreeActions(): array
7777
$data['menu_id'] = $this->record->id;
7878
static::getModel()::create($data);
7979
}),
80+
];
81+
}
82+
83+
protected function getTreeActions(): array
84+
{
85+
return [
8086
EditAction::make()
8187
->mountUsing(
8288
fn ($arguments, $form, $model) => $form->fill([

0 commit comments

Comments
 (0)