diff --git a/app/components/navigation/MainNavigation.vue b/app/components/navigation/MainNavigation.vue index 78c8052..389f737 100644 --- a/app/components/navigation/MainNavigation.vue +++ b/app/components/navigation/MainNavigation.vue @@ -32,39 +32,35 @@ > {{ $t('catalog.modes.quote') }} - - {{ $t('cabinetNav.cabinet') }} - + +
+ + {{ currentRole === 'SELLER' ? $t('cabinetNav.roles.seller') : $t('cabinetNav.roles.client') }} + - -
- - + +
+ + +
@@ -361,8 +357,7 @@ const props = withDefaults(defineProps<{ } | null isSeller?: boolean // Role switching props - hasBuyerTeam?: boolean - hasSellerTeam?: boolean + hasMultipleRoles?: boolean currentRole?: string // Search props activeTokens?: Array<{ type: string; id: string; label: string; icon: string }> diff --git a/app/layouts/topnav.vue b/app/layouts/topnav.vue index 45763d6..be697cc 100644 --- a/app/layouts/topnav.vue +++ b/app/layouts/topnav.vue @@ -17,8 +17,7 @@ :theme="theme" :user-data="userData" :is-seller="isSeller" - :has-buyer-team="hasBuyerTeam" - :has-seller-team="hasSellerTeam" + :has-multiple-roles="hasMultipleRoles" :current-role="currentRole" :active-tokens="activeTokens" :available-chips="availableChips" @@ -153,6 +152,7 @@ const sellerTeam = computed(() => ) const hasBuyerTeam = computed(() => !!buyerTeam.value) const hasSellerTeam = computed(() => !!sellerTeam.value) +const hasMultipleRoles = computed(() => hasBuyerTeam.value && hasSellerTeam.value) const currentRole = computed(() => userData.value?.activeTeam?.teamType || 'BUYER' )