diff --git a/frontend/src/pages/ProfilePage.tsx b/frontend/src/pages/ProfilePage.tsx index 6bfc166..1e1f4e2 100644 --- a/frontend/src/pages/ProfilePage.tsx +++ b/frontend/src/pages/ProfilePage.tsx @@ -167,6 +167,34 @@ function TotpSection({ enabled, onToggle }: { enabled: boolean; onToggle: () => ) } +// ── Mobile App ──────────────────────────────────────────────────────────────── + +function MobileAppSection() { + const [version, setVersion] = useState(null) + + useEffect(() => { + fetch('/static/downloads/version.txt') + .then(r => (r.ok ? r.text() : Promise.reject())) + .then(v => setVersion(v.trim())) + .catch(() => setVersion(null)) + }, []) + + return ( +
+

+ Mobile App (Android){version && v{version}} +

+

+ Ein-/Ausstempeln und Pause direkt vom Smartphone. Nur im Firmennetzwerk erreichbar. +

+ + APK herunterladen + +
+ ) +} + // ── iCal-Abo ────────────────────────────────────────────────────────────────── function IcalSection() { @@ -400,6 +428,9 @@ export function ProfilePage() { {/* Kalender-Abo (iCal) */} + {/* Mobile App */} + + {/* Passwort ändern */}

Passwort ändern