Skip to content

Commit

Permalink
Updated nav to only show groups list when part of more than zero groups
Browse files Browse the repository at this point in the history
Signed-off-by: Will Burton <willburton@linney.com>
  • Loading branch information
WillTheDeveloper committed Nov 29, 2022
1 parent 7b6a83c commit 4ee07ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/layouts/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,11 @@ class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-9 sm:text-s
@endif--}}
</div>
<div class="mt-8">
@if(auth()->user()->Group()->count() > 0)
<!-- Secondary navigation -->
<h3 class="px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider"
id="desktop-teams-headline">
Teams
My groups
</h3>
<div class="mt-1 space-y-1" role="group" aria-labelledby="desktop-teams-headline">
@foreach(auth()->user()->Group()->get() as $group)
Expand All @@ -340,6 +341,7 @@ class="group flex items-center px-3 py-2 text-sm font-medium text-gray-700 round
</a>
@endforeach
</div>
@endif
</div>
</nav>
</div>
Expand Down

0 comments on commit 4ee07ec

Please sign in to comment.