fix: disable wire navigate for social login

This commit is contained in:
hackerESQ
2025-09-26 20:36:29 -05:00
parent 013ccba050
commit b896513be9
2 changed files with 2 additions and 3 deletions
@@ -5,7 +5,7 @@
link="{{ route('oauth.redirect', ['provider' => $provider]) }}" link="{{ route('oauth.redirect', ['provider' => $provider]) }}"
class="btn-sm btn-block my-1 text-white" class="btn-sm btn-block my-1 text-white"
style='background-color: {{ config("services.$provider.color") }}' style='background-color: {{ config("services.$provider.color") }}'
no-wire-navigate external
> >
@include("components.social.$provider-icon") @include("components.social.$provider-icon")
@@ -6,7 +6,6 @@
'link' => null, 'link' => null,
'route' => null, 'route' => null,
'external' => false, 'external' => false,
'noWireNavigate' => false,
'badge' => null, 'badge' => null,
'badgeClasses' => null, 'badgeClasses' => null,
'badge' => false, 'badge' => false,
@@ -40,7 +39,7 @@
target="_blank" target="_blank"
@endif @endif
@if(!$external && !$noWireNavigate) @if(!$external)
{{ $attributes->wire('navigate')->value() ? $attributes->wire('navigate') : 'wire:navigate' }} {{ $attributes->wire('navigate')->value() ? $attributes->wire('navigate') : 'wire:navigate' }}
@endif @endif
@endif @endif