fix(261005-jqd): Profilmenue mit einem Eintrag Einstellungen bzw. Einstellungen/Administration
Tessera CI/CD / Lint & Type Check (push) Successful in 52s
Tessera CI/CD / Tests (push) Successful in 1m54s
Tessera CI/CD / Desktop-Pakete bauen (push) Successful in 18s
Tessera CI/CD / Build & Publish Images (push) Successful in 3m3s

Einstellungen und Verwaltung fuehrten in dieselbe Leiste; der doppelte
Eintrag entfaellt. Administratoren sehen 'Einstellungen/Administration'.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-05 15:11:57 +02:00
parent 99adad881f
commit 558d327a98
7 changed files with 7 additions and 34 deletions
+1 -31
View File
@@ -229,40 +229,10 @@ export function Header() {
<circle cx="12" cy="12" r="3" />
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" />
</svg>
{tHeader('settings')}
{isAdmin ? tHeader('settingsAdmin') : tHeader('settings')}
</Link>
</div>
{/* Administration link */}
{isAdmin && (
<div className="px-2 py-1">
<Link
href="/admin/users"
onClick={() => setDropdownOpen(false)}
className={`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${
pathname.startsWith('/admin')
? 'bg-muted text-foreground font-medium'
: 'text-foreground hover:bg-muted'
}`}
>
<svg
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
</svg>
{tHeader('admin.label')}
</Link>
</div>
)}
{/* Logout button */}
<div className="border-t border-border my-1" />
+1
View File
@@ -79,6 +79,7 @@
"home": "Startseite"
},
"settings": "Einstellungen",
"settingsAdmin": "Einstellungen/Administration",
"logout": "Abmelden",
"admin": {
"label": "Verwaltung",
+1
View File
@@ -79,6 +79,7 @@
"home": "Home"
},
"settings": "Settings",
"settingsAdmin": "Settings/Administration",
"logout": "Sign Out",
"admin": {
"label": "Administration",