Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit d1893d4

Browse files
Merge pull request #320 from CodeWithDennis/fix-gloabally-deferred-confirmation
Replace table loading selection with confirmation prompt in user inpu…
2 parents ba4bcba + 675690c commit d1893d4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Concerns/Commands/InteractsWithUserInput.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Filament\Panel;
77
use Illuminate\Support\Collection;
88

9+
use function Laravel\Prompts\confirm;
910
use function Laravel\Prompts\multiselect;
10-
use function Laravel\Prompts\select;
1111

1212
trait InteractsWithUserInput
1313
{
@@ -68,14 +68,10 @@ protected function askUserToSelectResourcesFromTheSelectedPanels(): Collection
6868

6969
protected function askUserIfTableLoadingIsGloballyDeferred(): bool
7070
{
71-
return (bool) select(
71+
return confirm(
7272
label: 'Do you globally defer table loading in your Filament app?',
73-
options: [
74-
1 => 'Yes',
75-
0 => 'No',
76-
],
73+
default: false,
7774
hint: 'If you set `deferLoading` individually on your resource tables, you can select "No" here.',
78-
required: true,
7975
);
8076
}
8177
}

0 commit comments

Comments
 (0)