Skip to content

Commit

Permalink
emit the proper event
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 14, 2020
1 parent 47322fa commit c51e5cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Http/Livewire/UpdateProfileInformationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public function updateProfileInformation(UpdatesUserProfileInformation $updater)
public function deleteProfilePhoto()
{
Auth::user()->deleteProfilePhoto();

$this->emit('refresh-navigation-dropdown');
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

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

Expand Down

0 comments on commit c51e5cf

Please sign in to comment.