File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 22
33namespace Statikbe \FilamentFlexibleContentBlockPages \Resources \MenuResource \Pages ;
44
5+ use Filament \Actions \CreateAction ;
56use Filament \Actions \LocaleSwitcher ;
67use Illuminate \Database \Eloquent \Model ;
7- use SolutionForest \FilamentTree \Actions \Action ;
88use SolutionForest \FilamentTree \Actions \DeleteAction ;
99use SolutionForest \FilamentTree \Actions \EditAction ;
1010use 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 ,
You can’t perform that action at this time.
0 commit comments