fix(nav): Sicherheit/2FA & Konto-Datenschutz im Benutzer-Menü auffindbar (v1.8.3)

2FA lag unter /settings, war aber über kein Menü erreichbar. Neu im Benutzer-Menü
(Desktop-Dropdown + Mobil-Menü): "Sicherheit & 2FA" (→ /settings) und
"Konto & Datenschutz" (→ /konto/datenschutz).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Pepe Ziberi
2026-07-23 20:15:40 +02:00
parent 9ba7194d41
commit ae78b2d878
2 changed files with 17 additions and 1 deletions

View File

@@ -370,6 +370,14 @@ export function Topbar({
<Key className="w-4 h-4 mr-2" />
Kennwort ändern
</DropdownMenuItem>
<DropdownMenuItem onClick={() => window.location.href = '/settings'}>
<Lock className="w-4 h-4 mr-2" />
Sicherheit &amp; 2FA
</DropdownMenuItem>
<DropdownMenuItem onClick={() => window.location.href = '/konto/datenschutz'}>
<Shield className="w-4 h-4 mr-2" />
Konto &amp; Datenschutz
</DropdownMenuItem>
{(userRole === 'SERVER_ADMIN' || userRole === 'TENANT_ADMIN') && (
<DropdownMenuItem onClick={() => window.location.href = '/admin'}>
<Shield className="w-4 h-4 mr-2" />
@@ -492,6 +500,14 @@ export function Topbar({
<Key className="w-4 h-4 mr-2" />
Kennwort ändern
</DropdownMenuItem>
<DropdownMenuItem onClick={() => window.location.href = '/settings'}>
<Lock className="w-4 h-4 mr-2" />
Sicherheit &amp; 2FA
</DropdownMenuItem>
<DropdownMenuItem onClick={() => window.location.href = '/konto/datenschutz'}>
<Shield className="w-4 h-4 mr-2" />
Konto &amp; Datenschutz
</DropdownMenuItem>
{onLogout && (
<DropdownMenuItem onClick={onLogout} className="text-destructive focus:text-destructive">
<LogOut className="w-4 h-4 mr-2" />