feat: Add MenuBar component with navigation, i18n, dark mode, and authentication features.

This commit is contained in:
Elmar Kresse
2025-11-22 22:52:25 +01:00
parent f40558646c
commit 0c50c984c2

View File

@@ -109,8 +109,9 @@ async function handleLogin() {
detail: t('toast.loginSuccessDetail'),
life: 3000
});
} catch (error: any) {
if (error?.message && error.message.includes('Login restricted')) {
} catch (error: unknown) {
const err = error as { message?: string };
if (err?.message && err.message.includes('Login restricted')) {
toast.add({
severity: 'error',
summary: t('toast.loginError'),
@@ -121,7 +122,7 @@ async function handleLogin() {
toast.add({
severity: 'error',
summary: t('toast.loginError'),
detail: error?.message || t('toast.loginErrorDetail'),
detail: err?.message || t('toast.loginErrorDetail'),
life: 5000
});
}