Skip to content

Commit

Permalink
Fix direct download
Browse files Browse the repository at this point in the history
  • Loading branch information
perryfaro authored and Alperen Ersoy committed Oct 11, 2024
1 parent dcade8f commit 25f2caa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Actions/FilamentExportBulkAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ protected function setUp(): void
FilamentExport::setUpFilamentExportAction($this);

$this
->modalHeading(static function ($action) {
if ($action->shouldDownloadDirect()) {
return false;
}
return $action;
})
->form(static function ($action, $records, $livewire): array {
if ($action->shouldDownloadDirect()) {
return [];
Expand Down
6 changes: 6 additions & 0 deletions src/Actions/FilamentExportHeaderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ protected function setUp(): void
FilamentExport::setUpFilamentExportAction($this);

$this
->modalHeading(static function ($action) {
if ($action->shouldDownloadDirect()) {
return false;
}
return $action;
})
->form(static function ($action, $livewire): array {
if ($action->shouldDownloadDirect()) {
return [];
Expand Down

0 comments on commit 25f2caa

Please sign in to comment.