mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-18 12:32:26 +01:00
feat: Add MenuBar component with navigation, i18n, dark mode, and authentication features.
This commit is contained in:
@@ -109,8 +109,9 @@ async function handleLogin() {
|
|||||||
detail: t('toast.loginSuccessDetail'),
|
detail: t('toast.loginSuccessDetail'),
|
||||||
life: 3000
|
life: 3000
|
||||||
});
|
});
|
||||||
} catch (error: any) {
|
} catch (error: unknown) {
|
||||||
if (error?.message && error.message.includes('Login restricted')) {
|
const err = error as { message?: string };
|
||||||
|
if (err?.message && err.message.includes('Login restricted')) {
|
||||||
toast.add({
|
toast.add({
|
||||||
severity: 'error',
|
severity: 'error',
|
||||||
summary: t('toast.loginError'),
|
summary: t('toast.loginError'),
|
||||||
@@ -121,7 +122,7 @@ async function handleLogin() {
|
|||||||
toast.add({
|
toast.add({
|
||||||
severity: 'error',
|
severity: 'error',
|
||||||
summary: t('toast.loginError'),
|
summary: t('toast.loginError'),
|
||||||
detail: error?.message || t('toast.loginErrorDetail'),
|
detail: err?.message || t('toast.loginErrorDetail'),
|
||||||
life: 5000
|
life: 5000
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user