Skip to content

Commit c51e5cf

Browse files
committed
emit the proper event
1 parent 47322fa commit c51e5cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Http/Livewire/UpdateProfileInformationForm.php

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function updateProfileInformation(UpdatesUserProfileInformation $updater)
6969
public function deleteProfilePhoto()
7070
{
7171
Auth::user()->deleteProfilePhoto();
72+
73+
$this->emit('refresh-navigation-dropdown');
7274
}
7375

7476
/**

stubs/livewire/resources/views/profile/update-profile-information-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
@if ($this->user->profile_photo_path)
4646
<x-jet-secondary-button type="button" class="ml-2" wire:click="deleteProfilePhoto">
47-
Remove Photo
47+
{{ __('Remove Photo') }}
4848
</x-jet-secondary-button>
4949
@endif
5050

0 commit comments

Comments
 (0)