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 2
2
3
3
namespace Statikbe \FilamentFlexibleContentBlockPages \Resources \MenuResource \Pages ;
4
4
5
+ use Filament \Actions \CreateAction ;
5
6
use Filament \Actions \LocaleSwitcher ;
6
7
use Illuminate \Database \Eloquent \Model ;
7
- use SolutionForest \FilamentTree \Actions \Action ;
8
8
use SolutionForest \FilamentTree \Actions \DeleteAction ;
9
9
use SolutionForest \FilamentTree \Actions \EditAction ;
10
10
use SolutionForest \FilamentTree \Concern \TreeRecords \Translatable ;
@@ -50,21 +50,15 @@ public function getTitle(): string
50
50
51
51
public function getBreadcrumb (): string
52
52
{
53
- // TODO fix
54
53
return flexiblePagesTrans ('menu_items.manage.breadcrumb ' );
55
54
}
56
55
57
- protected function getHeaderActions (): array
58
- {
59
- return [
60
- LocaleSwitcher::make (),
61
- ];
62
- }
63
-
64
56
protected function getActions (): array
65
57
{
66
58
return [
67
- Action::make ('create ' )
59
+ LocaleSwitcher::make (),
60
+ CreateAction::make ()
61
+ ->label (flexiblePagesTrans ('menu_items.tree.add_item ' ))
68
62
->mountUsing (
69
63
fn ($ arguments , $ form , $ model ) => $ form ->fill ([
70
64
'menu_id ' => $ this ->record ->id ,
You can’t perform that action at this time.
0 commit comments