getRoleLabel in Invites table

This commit is contained in:
andrewwallacespeckle
2025-03-20 12:19:46 +00:00
parent ca03bb7168
commit e4e1056f71
@@ -42,7 +42,7 @@
rounded
color-classes="bg-highlight-3 text-foreground-2 capitalize"
>
{{ item.role }}
{{ getRoleLabel(item.role) }}
</CommonBadge>
</div>
</template>
@@ -184,4 +184,7 @@ const onActionChosen = async (
const toggleMenu = (itemId: string) => {
showActionsMenu.value[itemId] = !showActionsMenu.value[itemId]
}
// Not using shared getRoleLabel as it requires strict workspace role types, but GraphQL currently returns string
const getRoleLabel = (role: string) => role.split(':')[1]
</script>