From 9f65bd2ae74ff423a610e4129df4f9b365724f53 Mon Sep 17 00:00:00 2001 From: Bastian Masanek Date: Tue, 4 Nov 2025 13:09:16 +0100 Subject: [PATCH] Update RoleSwitcher.vue to reflect role terminology changes - Changed user role type from 'individual' to 'private' to align with project terminology. --- app/components/navigation/RoleSwitcher.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/components/navigation/RoleSwitcher.vue b/app/components/navigation/RoleSwitcher.vue index b35c013..e288d6f 100644 --- a/app/components/navigation/RoleSwitcher.vue +++ b/app/components/navigation/RoleSwitcher.vue @@ -12,7 +12,7 @@ import { import { Button } from '@/components/ui/button' // User role types matching our database schema -type UserRole = 'individual' | 'educator' | 'company' +type UserRole = 'private' | 'educator' | 'company' interface RoleOption { value: UserRole @@ -26,7 +26,7 @@ interface RoleOption { const roles: RoleOption[] = [ { - value: 'individual', + value: 'private', label: 'Privatperson', description: 'Private Nutzung', icon: User, @@ -54,7 +54,7 @@ const roles: RoleOption[] = [ ] // Current role - will come from user session later -const currentRole = ref('individual') +const currentRole = ref('private') const currentRoleData = computed(() => { return roles.find((r) => r.value === currentRole.value) || roles[0] @@ -100,8 +100,9 @@ function switchRole(role: UserRole) {
{{ role.label }} - {{ - role.description }} + {{ + role.description }}