Skip to content

Commit a94193b

Browse files
committed
Add confirmation prompts for unlinking social accounts
1 parent 83acb39 commit a94193b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

resources/views/livewire/users/profile.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class="xs:max-w-30 ml-auto w-full text-xs/3"
6767
name="Google"
6868
email="{{ $socials_google->email }}"
6969
wire:click="unlinkSocialAccount('google')"
70+
wire:confirm="Are you sure to unlink user social account? This action can't be undone!"
71+
wire:loading.attr="disabled"
7072
>
7173
Unlink
7274
</x-social-account>
@@ -77,6 +79,8 @@ class="xs:max-w-30 ml-auto w-full text-xs/3"
7779
name="GitHub"
7880
email="{{ $socials_github->email }}"
7981
wire:click="unlinkSocialAccount('github')"
82+
wire:confirm="Are you sure to unlink user social account? This action can't be undone!"
83+
wire:loading.attr="disabled"
8084
>
8185
Unlink
8286
</x-social-account>

0 commit comments

Comments
 (0)