Fix: seat check (#4556)

This commit is contained in:
Mike
2025-04-23 00:42:19 +02:00
committed by GitHub
parent 972033de28
commit 45d20f13d2
@@ -146,26 +146,26 @@ const badgeText = computed(() => {
})
const disabledRoles = computed(() => {
if (isTargettingWorkspaceGuest.value) {
return [Roles.Stream.Owner]
}
if (props.collaborator.seatType === 'viewer') {
return [Roles.Stream.Owner, Roles.Stream.Contributor]
}
if (isTargettingWorkspaceGuest.value) {
return [Roles.Stream.Owner]
}
return []
})
const disabledRolesTooltip = computed(() => {
if (isTargettingWorkspaceGuest.value) {
return 'Workspace guests cannot be project owners'
}
if (props.collaborator.seatType === 'viewer') {
return 'Users with a viewer seat cannot be project owners or contributors'
}
if (isTargettingWorkspaceGuest.value) {
return 'Workspace guests cannot be project owners'
}
return ''
})