diff --git a/app/Filament/Admin/Resources/Eggs/Pages/CreateEgg.php b/app/Filament/Admin/Resources/Eggs/Pages/CreateEgg.php index 3ae0b459a..758d871fa 100644 --- a/app/Filament/Admin/Resources/Eggs/Pages/CreateEgg.php +++ b/app/Filament/Admin/Resources/Eggs/Pages/CreateEgg.php @@ -103,6 +103,7 @@ class CreateEgg extends CreateRecord ->live() ->columnSpanFull() ->required() + ->reorderable() ->addActionLabel(trans('admin/egg.add_startup')) ->keyLabel(trans('admin/egg.startup_name')) ->keyPlaceholder('Default') @@ -135,6 +136,7 @@ class CreateEgg extends CreateRecord ->live() ->columnSpanFull() ->required() + ->reorderable() ->addActionLabel(trans('admin/egg.add_image')) ->keyLabel(trans('admin/egg.docker_name')) ->keyPlaceholder('Java 21') @@ -176,7 +178,6 @@ class CreateEgg extends CreateRecord ->grid() ->relationship('variables') ->orderColumn() - ->reorderAction(fn (Action $action) => $action->hiddenLabel()->tooltip(fn () => $action->getLabel())) ->collapsible()->collapsed() ->columnSpan(2) ->defaultItems(0) diff --git a/app/Filament/Admin/Resources/Eggs/Pages/EditEgg.php b/app/Filament/Admin/Resources/Eggs/Pages/EditEgg.php index 2cccba780..023f212c9 100644 --- a/app/Filament/Admin/Resources/Eggs/Pages/EditEgg.php +++ b/app/Filament/Admin/Resources/Eggs/Pages/EditEgg.php @@ -118,6 +118,7 @@ class EditEgg extends EditRecord ->live() ->columnSpanFull() ->required() + ->reorderable() ->addActionLabel(trans('admin/egg.add_startup')) ->keyLabel(trans('admin/egg.startup_name')) ->valueLabel(trans('admin/egg.startup_command')) @@ -145,6 +146,7 @@ class EditEgg extends EditRecord ->live() ->columnSpanFull() ->required() + ->reorderable() ->addActionLabel(trans('admin/egg.add_image')) ->keyLabel(trans('admin/egg.docker_name')) ->valueLabel(trans('admin/egg.docker_uri')) @@ -182,7 +184,6 @@ class EditEgg extends EditRecord ->grid() ->relationship('variables') ->orderColumn() - ->reorderAction(fn (Action $action) => $action->hiddenLabel()->tooltip(fn () => $action->getLabel())) ->collapsible()->collapsed() ->addActionLabel(trans('admin/egg.add_new_variable')) ->itemLabel(fn (array $state) => $state['name']) diff --git a/app/Providers/Filament/FilamentServiceProvider.php b/app/Providers/Filament/FilamentServiceProvider.php index f97490aa9..96ad7a332 100644 --- a/app/Providers/Filament/FilamentServiceProvider.php +++ b/app/Providers/Filament/FilamentServiceProvider.php @@ -97,15 +97,35 @@ class FilamentServiceProvider extends ServiceProvider Select::configureUsing(fn (Select $select) => $select->native(false)); - KeyValue::configureUsing(fn (KeyValue $keyValue) => $keyValue->deleteAction(function (Action $action) { - $action->tooltip(fn () => $action->getLabel()); - $action->iconSize(IconSize::Large); - })); + KeyValue::configureUsing(fn (KeyValue $keyValue) => $keyValue + ->addAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ->deleteAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ->reorderAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ); - Repeater::configureUsing(fn (Repeater $repeater) => $repeater->deleteAction(function (Action $action) { - $action->tooltip(fn () => $action->getLabel()); - $action->iconSize(IconSize::Large); - })); + Repeater::configureUsing(fn (Repeater $repeater) => $repeater + ->addAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ->deleteAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ->reorderAction(function (Action $action) { + $action->tooltip(fn () => $action->getLabel()); + $action->iconSize(IconSize::Large); + }) + ); ShowPasswordAction::configureUsing(function (ShowPasswordAction $action) { $action->tooltip(fn () => $action->getLabel());