Skip to content

Commit

Permalink
use egg exporter directly instead of old admin route
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Jun 11, 2024
1 parent 73ed760 commit e5f8d86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Filament/Resources/EggResource/Pages/EditEgg.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use AbdelhamidErrahmouni\FilamentMonacoEditor\MonacoEditor;
use App\Services\Eggs\Sharing\EggExporterService;
use Filament\Forms;
use Filament\Forms\Form;

Expand Down Expand Up @@ -205,8 +206,7 @@ protected function getHeaderActions(): array
->icon('tabler-download')
->label('Export Egg')
->color('primary')
// TODO uses old admin panel export service
->url(fn (Egg $egg): string => route('admin.eggs.export', ['egg' => $egg['id']])),
->url(fn (EggExporterService $service, Egg $egg) => $service->handle($egg->id)),
$this->getSaveFormAction()->formId('form'),
];
}
Expand Down

0 comments on commit e5f8d86

Please sign in to comment.