1405/04/27

-responive bugs
This commit is contained in:
2026-07-18 15:46:38 +03:30
parent c2a355f2de
commit 37d86ba36e
39 changed files with 1910 additions and 404 deletions
+16 -2
View File
@@ -16,6 +16,13 @@ export const GUEST_PRIMARY_NAV: AppNavItem[] = [
{ id: 'login', routeName: 'login', label: 'ورود', icon: 'vuesax-linear:login' },
]
export const RECOVERY_SITES_NAV_ITEM: AppNavItem = {
id: 'recoverySites',
routeName: 'recoverySites',
label: 'سایت‌های ری‌گیری',
icon: 'vuesax-linear:global',
}
/** منوی FAB موبایل + بخش فرعی سایدبار دسکتاپ — کاربر لاگین‌شده */
export const AUTH_SECONDARY_NAV: AppNavItem[] = [
{ id: 'notifyTrigger', routeName: 'notifyTrigger', label: 'هشدار قیمت', icon: 'vuesax-linear:bill' },
@@ -34,6 +41,13 @@ export function getPrimaryNavItems(isAuthenticated: boolean): AppNavItem[] {
return isAuthenticated ? AUTH_PRIMARY_NAV : GUEST_PRIMARY_NAV
}
export function getSecondaryNavItems(isAuthenticated: boolean): AppNavItem[] {
return isAuthenticated ? AUTH_SECONDARY_NAV : []
export function getSecondaryNavItems(
isAuthenticated: boolean,
options?: { includeRecoverySites?: boolean },
): AppNavItem[] {
if (!isAuthenticated) return []
if (options?.includeRecoverySites) {
return [...AUTH_SECONDARY_NAV, RECOVERY_SITES_NAV_ITEM]
}
return AUTH_SECONDARY_NAV
}