Only show role tag if you have a role (#2968)

This commit is contained in:
andrewwallacespeckle
2024-09-12 13:39:45 +01:00
committed by GitHub
parent 3ccf9c6aea
commit 32040aca59
@@ -18,7 +18,11 @@
project.modelCount.totalCount === 1 ? '' : 's'
}}
</CommonBadge>
<CommonBadge rounded :color-classes="'text-foreground-2 bg-primary-muted'">
<CommonBadge
v-if="project.role"
rounded
:color-classes="'text-foreground-2 bg-primary-muted'"
>
<span class="capitalize">
{{ project.role?.split(':').reverse()[0] }}
</span>