@@ -73,41 +73,39 @@ const logout = () => {
7373 <template #content >
7474 <div class =" w-60" >
7575 <!-- Team Management -->
76- <template v-if =" $page .props .jetstream .hasTeamFeatures " >
76+ <div class =" block px-4 py-2 text-xs text-gray-400" >
77+ Manage Team
78+ </div >
79+
80+ <!-- Team Settings -->
81+ <DropdownLink :href =" route('teams.show', $page.props.auth.user.current_team)" >
82+ Team Settings
83+ </DropdownLink >
84+
85+ <DropdownLink v-if =" $page.props.jetstream.canCreateTeams" :href =" route('teams.create')" >
86+ Create New Team
87+ </DropdownLink >
88+
89+ <!-- Team Switcher -->
90+ <template v-if =" $page .props .auth .user .all_teams .length > 1 " >
91+ <div class =" border-t border-gray-200 dark:border-gray-600" />
92+
7793 <div class =" block px-4 py-2 text-xs text-gray-400" >
78- Manage Team
94+ Switch Teams
7995 </div >
8096
81- <!-- Team Settings -->
82- <DropdownLink :href =" route('teams.show', $page.props.auth.user.current_team)" >
83- Team Settings
84- </DropdownLink >
85-
86- <DropdownLink v-if =" $page.props.jetstream.canCreateTeams" :href =" route('teams.create')" >
87- Create New Team
88- </DropdownLink >
89-
90- <!-- Team Switcher -->
91- <template v-if =" $page .props .auth .user .all_teams .length > 1 " >
92- <div class =" border-t border-gray-200 dark:border-gray-600" />
93-
94- <div class =" block px-4 py-2 text-xs text-gray-400" >
95- Switch Teams
96- </div >
97-
98- <template v-for =" team in $page .props .auth .user .all_teams " :key =" team .id " >
99- <form @submit.prevent =" switchToTeam(team)" >
100- <DropdownLink as =" button" >
101- <div class =" flex items-center" >
102- <svg v-if =" team.id == $page.props.auth.user.current_team_id" class =" mr-2 h-5 w-5 text-green-400" xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5" stroke =" currentColor" >
103- <path stroke-linecap =" round" stroke-linejoin =" round" d =" M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
104- </svg >
105-
106- <div >{{ team.name }}</div >
107- </div >
108- </DropdownLink >
109- </form >
110- </template >
97+ <template v-for =" team in $page .props .auth .user .all_teams " :key =" team .id " >
98+ <form @submit.prevent =" switchToTeam(team)" >
99+ <DropdownLink as =" button" >
100+ <div class =" flex items-center" >
101+ <svg v-if =" team.id == $page.props.auth.user.current_team_id" class =" mr-2 h-5 w-5 text-green-400" xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5" stroke =" currentColor" >
102+ <path stroke-linecap =" round" stroke-linejoin =" round" d =" M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
103+ </svg >
104+
105+ <div >{{ team.name }}</div >
106+ </div >
107+ </DropdownLink >
108+ </form >
111109 </template >
112110 </template >
113111 </div >
0 commit comments