File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
resources/views/livewire/partials Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1616{{-- Navigation buttons outside nested component --}}
1717<div class =" flex justify-between pt-4 border-t border-gray-200 dark:border-gray-700" >
1818 <x-filament::button wire:click =" previousStep" color =" gray" >Back</x-filament::button >
19- <x-filament::button wire:click =" executeImport" >
20- Start Import
21- </x-filament::button >
19+ {{ $this -> startImportAction } }
2220</div >
Original file line number Diff line number Diff line change @@ -224,6 +224,21 @@ private function prepareForPreview(): void
224224 $ this ->generateImportPreview ();
225225 }
226226
227+ /**
228+ * Start import action with confirmation modal.
229+ */
230+ public function startImportAction (): Action
231+ {
232+ return Action::make ('startImport ' )
233+ ->label ('Start Import ' )
234+ ->icon (Heroicon::OutlinedArrowUpTray)
235+ ->requiresConfirmation ()
236+ ->modalHeading ('Confirm Import ' )
237+ ->modalDescription ('Are you sure you want to start this import? This action cannot be undone. ' )
238+ ->modalSubmitActionLabel ('Start Import ' )
239+ ->action (fn () => $ this ->executeImport ());
240+ }
241+
227242 /**
228243 * Execute the import.
229244 */
You can’t perform that action at this time.
0 commit comments