diff --git a/client/src/app/pages/home/home.component.ts b/client/src/app/pages/home/home.component.ts
index 0613a49..17b64bf 100644
--- a/client/src/app/pages/home/home.component.ts
+++ b/client/src/app/pages/home/home.component.ts
@@ -2,13 +2,15 @@ import {Component, inject} from '@angular/core';
import {MatButton} from '@angular/material/button';
import {AuthService} from '../../services/auth/auth.service';
import {RouterLink} from '@angular/router';
+import {AddProductComponent} from '../add-product/add-product.component';
@Component({
selector: 'app-home',
standalone: true,
imports: [
MatButton,
- RouterLink
+ RouterLink,
+ AddProductComponent
],
templateUrl: './home.component.html',
styleUrl: './home.component.css'
diff --git a/client/src/app/pages/login/login.component.html b/client/src/app/pages/login/login.component.html
index e1f368c..020b1e4 100644
--- a/client/src/app/pages/login/login.component.html
+++ b/client/src/app/pages/login/login.component.html
@@ -1,17 +1,17 @@
diff --git a/client/src/app/pages/login/login.component.ts b/client/src/app/pages/login/login.component.ts
index 7d60443..586e8f5 100644
--- a/client/src/app/pages/login/login.component.ts
+++ b/client/src/app/pages/login/login.component.ts
@@ -51,9 +51,11 @@ export class LoginComponent implements OnDestroy {
this.loginFormGroup.value as Credentials).subscribe({
next: (result: User | null | undefined) => {
this.navigateHome();
+ alert('Login successful!');
},
error: (error) => {
console.log(error);
+ alert(error.message);
this.invalidCredentials = true;
}
});
diff --git a/client/src/app/pages/register/register.component.html b/client/src/app/pages/register/register.component.html
index 8613168..30adda6 100644
--- a/client/src/app/pages/register/register.component.html
+++ b/client/src/app/pages/register/register.component.html
@@ -1,8 +1,8 @@
- Registration
- Create a new account
+ Inscription
+ Créer un nouveau compte
@@ -10,7 +10,7 @@
- First Name
+ Prénom
- Last Name
+ Nom
- Username
+ Nom d'utilisateur
- Password
+ Mot de passe
- Confirm Password
+ Confirmer le mot de passe
- I agree to the terms and conditions
+ J'accepte les conditions générales d'utilisation
@if (isFieldInvalid('termsAndConditions')) {
{{ getFieldError('termsAndConditions') }}
@@ -116,9 +116,9 @@
[disabled]="isLoading || registerForm.invalid">
@if (isLoading) {
- Signing up…
+ Inscription…
} @else {
- Sign up
+ S'inscrire
}
@@ -129,8 +129,8 @@
- Already have an account?
- Sign in
+ Vous avez déjà un compte ?
+ Se connecter