mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-16 11: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'),
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user