login invalid login message show in single line
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
<!-- Login Form -->
|
<!-- Login Form -->
|
||||||
<form [formGroup]="adminLoginForm" (ngSubmit)="login()" class="space-y-4">
|
<form [formGroup]="adminLoginForm" (ngSubmit)="login()" class="space-y-4">
|
||||||
@if (loginError) {
|
@if (loginError) {
|
||||||
<div class="p-3 text-xs text-red-600 bg-red-50 border border-red-200 rounded-lg">
|
<div class="p-3 text-xs sm:text-sm text-red-600 bg-red-50 border border-red-200 rounded-xl text-center font-medium w-full">
|
||||||
{{ loginError }}
|
{{ loginError }}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,11 +30,4 @@
|
|||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-lg {
|
|
||||||
width: 120px;
|
|
||||||
justify-content: center;
|
|
||||||
margin: auto;
|
|
||||||
border-radius: 0.75rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,6 @@ export class Login {
|
|||||||
.subscribe({
|
.subscribe({
|
||||||
next: () => {
|
next: () => {
|
||||||
if (this.loginError) {
|
if (this.loginError) {
|
||||||
this.notification.error(this.loginError);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,8 +92,6 @@ export class Login {
|
|||||||
error?.error?.detail ||
|
error?.error?.detail ||
|
||||||
error?.error?.message ||
|
error?.error?.message ||
|
||||||
'Invalid email or password';
|
'Invalid email or password';
|
||||||
|
|
||||||
this.notification.error(this.loginError);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user