diff --git a/app/Http/Livewire/Team/InviteLink.php b/app/Http/Livewire/Team/InviteLink.php index a557ea3d5..1a46c2199 100644 --- a/app/Http/Livewire/Team/InviteLink.php +++ b/app/Http/Livewire/Team/InviteLink.php @@ -19,6 +19,7 @@ public function mount() public function viaEmail() { $this->generate_invite_link(isEmail: true); + $this->emit('message', 'Invitation sent via email successfully.'); } private function generate_invite_link(bool $isEmail = false) { @@ -61,7 +62,6 @@ private function generate_invite_link(bool $isEmail = false) $user->first()->notify(new InvitationLinkEmail()); } $this->emit('refreshInvitations'); - $this->emit('message', 'Invitation sent successfully.'); } catch (\Throwable $e) { $error_message = $e->getMessage(); if ($e->getCode() === '23505') { @@ -73,5 +73,6 @@ private function generate_invite_link(bool $isEmail = false) public function inviteByLink() { $this->generate_invite_link(); + $this->emit('message', 'Invitation link generated.'); } } diff --git a/resources/views/components/settings/navbar.blade.php b/resources/views/components/settings/navbar.blade.php index bce6bcb16..53843b503 100644 --- a/resources/views/components/settings/navbar.blade.php +++ b/resources/views/components/settings/navbar.blade.php @@ -7,7 +7,7 @@ - +
diff --git a/resources/views/livewire/project/new/github-private-repository.blade.php b/resources/views/livewire/project/new/github-private-repository.blade.php index 1e0e19a4c..85c1a9451 100644 --- a/resources/views/livewire/project/new/github-private-repository.blade.php +++ b/resources/views/livewire/project/new/github-private-repository.blade.php @@ -31,8 +31,7 @@ @endif @endforeach -