Skip to content

Commit

Permalink
Add loading indicator to login form submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
afsakar committed Oct 18, 2024
1 parent 403ea43 commit eb4beca
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions resources/views/pages/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@
<x-filament-panels::form wire:submit="sendOtp">
{{ $this->form }}

<x-filament-panels::form.actions
:actions="$this->getCachedFormActions()"
:full-width="true"
/>
<x-filament::button
type="submit"
label="Giriş"
class="flex items-center justify-center gap-2 w-full"
wire:loading.attr="disabled"
>
<x-filament::loading-indicator class="h-5 w-5" wire:loading wire:target="sendOtp" />
<span wire:loading.remove wire:target="sendOtp">
{{ __('filament-panels::pages/auth/login.form.actions.authenticate.label') }}
</span>
</x-filament::button>
</x-filament-panels::form>
@break
@default
Expand Down

0 comments on commit eb4beca

Please sign in to comment.