Skip to content

Commit

Permalink
Merge pull request #150 from zhanang19/feature/add-form-loading-indic…
Browse files Browse the repository at this point in the history
…ator

feat: add form submit loading indicator
  • Loading branch information
jeffgreco13 authored Apr 3, 2023
2 parents d974ccd + 66ae632 commit d7ac93a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/sections/2fa.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class="flex items-center justify-between">
<div>{{$this->confirmTwoFactorForm}}</div>
<div class="mt-5">
<x-filament::button type="submit">
<x-filament::button type="submit" form="confirmTwoFactor">
{{ __('filament-breezy::default.profile.2fa.actions.confirm_finish') }}
</x-filament::button>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/sections/passwords.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<x-slot name="footer">
<div class="text-right">
<x-filament::button type="submit">
<x-filament::button type="submit" form="updatePassword">
{{ __('filament-breezy::default.profile.password.submit.label') }}
</x-filament::button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<x-slot name="footer">
<div class="text-right">
<x-filament::button type="submit">
<x-filament::button type="submit" form="updateProfile">
{{ __('filament-breezy::default.profile.personal_info.submit.label') }}
</x-filament::button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/sections/sanctum.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{$this->createApiTokenForm}}

<div class="text-right">
<x-filament::button type="submit">
<x-filament::button type="submit" form="createApiToken">
{{ __('filament-breezy::default.profile.sanctum.create.submit.label') }}
</x-filament::button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/filament/pages/my-profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{$this->createApiTokenForm}}

<div class="text-right">
<x-filament::button type="submit">
<x-filament::button type="submit" form="createApiToken">
{{ __('filament-breezy::default.profile.sanctum.create.submit.label') }}
</x-filament::button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{ $this->form }}

<x-filament::button type="submit" class="w-full">
<x-filament::button type="submit" class="w-full" form="authenticate">
{{ __('filament::login.buttons.submit.label') }}
</x-filament::button>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

{{ $this->form }}

<x-filament::button type="submit" class="w-full">
<x-filament::button type="submit" class="w-full" form="register">
{{ __('filament-breezy::default.registration.submit.label') }}
</x-filament::button>
</x-filament-breezy::auth-card>
2 changes: 1 addition & 1 deletion resources/views/reset-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@unless($hasBeenSent)
{{ $this->form }}

<x-filament::button type="submit" class="w-full">
<x-filament::button type="submit" class="w-full" form="submit">
{{ __('filament-breezy::default.reset_password.submit.label') }}
</x-filament::button>
@else
Expand Down
2 changes: 1 addition & 1 deletion resources/views/two-factor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

{{ $this->twoFactorForm }}

<x-filament::button type="submit" class="w-full">
<x-filament::button type="submit" class="w-full" form="authenticate">
{{ __('filament::login.buttons.submit.label') }}
</x-filament::button>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/verify.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

{{ $this->form }}

<x-filament::button type="submit" class="w-full">
<x-filament::button type="submit" class="w-full" form="logout">
{{ __('filament-breezy::default.verification.submit.label') }}
</x-filament::button>
</x-filament-breezy::auth-card>

0 comments on commit d7ac93a

Please sign in to comment.