formatting

This commit is contained in:
2026-04-12 19:23:30 +02:00
parent 9dcdfb981a
commit 6f19d12964
5 changed files with 36 additions and 40 deletions
+7 -15
View File
@@ -53,11 +53,7 @@ const permissionsForTeam = (teamId: number): Record<string, string[]> =>
<Badge variant="outline" class="gap-1.5 px-3 py-1">
<Shield class="size-3.5" />
{{
canCreateTeams
? 'Global admin'
: 'Team-scoped access'
}}
{{ canCreateTeams ? 'Global admin' : 'Team-scoped access' }}
</Badge>
</div>
@@ -254,9 +250,7 @@ const permissionsForTeam = (teamId: number): Record<string, string[]> =>
option.value,
)
"
:key="
`${team.id}-${user.id}-${option.value}-badge`
"
:key="`${team.id}-${user.id}-${option.value}-badge`"
variant="secondary"
>
{{ option.label }}
@@ -266,8 +260,9 @@ const permissionsForTeam = (teamId: number): Record<string, string[]> =>
(
permissionsForTeam(
team.id,
)[user.id] ??
[]
)[
user.id
] ?? []
).length === 0
"
class="text-muted-foreground"
@@ -297,9 +292,7 @@ const permissionsForTeam = (teamId: number): Record<string, string[]> =>
>
<label
v-for="option in permissionOptions"
:key="
`${team.id}-${user.id}-${option.value}`
"
:key="`${team.id}-${user.id}-${option.value}`"
class="border-border inline-flex items-center gap-2 rounded-lg border px-3 py-2 text-sm"
>
<input
@@ -353,8 +346,7 @@ const permissionsForTeam = (teamId: number): Record<string, string[]> =>
<Card v-if="teams.length === 0">
<CardContent class="text-muted-foreground p-6 text-sm">
No teams are available for your current
permissions.
No teams are available for your current permissions.
</CardContent>
</Card>
</div>