Skip to content

Commit

Permalink
fix: hide switch team modal if user is only in 1 team
Browse files Browse the repository at this point in the history
fix #2333
  • Loading branch information
BreadGenie committed Dec 5, 2024
1 parent 693cdcb commit 573ba92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard/src2/components/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
{
label: 'Change Team',
icon: 'command',
condition: () =>
$team?.doc?.valid_teams?.length > 1 || $team?.doc?.is_desk_user,
onClick: () => (showTeamSwitcher = true)
},
{
Expand Down

0 comments on commit 573ba92

Please sign in to comment.