From 72f2e1c39dc2436d3d83efce42462da5263c795c Mon Sep 17 00:00:00 2001
From: Ruslan Bakiev <572431+veikab@users.noreply.github.com>
Date: Thu, 29 Jan 2026 15:44:52 +0700
Subject: [PATCH] Refactor role switcher: single item with arrows on right
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Remove separate "Кабинет" link and two role buttons
- Add single role switcher: "Я клиент <>" format
- Arrows <> shown only when user has both roles
- Click text → navigate to cabinet, click arrows → switch role
---
app/components/navigation/MainNavigation.vue | 63 +++++++++-----------
app/layouts/topnav.vue | 4 +-
2 files changed, 31 insertions(+), 36 deletions(-)
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') }}
-
+
+