diff --git a/src/app/app.component.ts b/src/app/app.component.ts index fbd6b2a..cbc489e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -15,8 +15,12 @@ export class AppComponent implements OnInit { ) { var language = navigator.language; - translate.setDefaultLang(language); - translate.use(language); + this.translate.setDefaultLang(language); + this.translate.use(language); + + this.translate.onLangChange.subscribe(() => { + document.title = this.translate.instant("title"); + }); } ngOnInit(): void { diff --git a/src/app/core/auth/auth.module.ts b/src/app/core/auth/auth.module.ts index 507dce8..9a4e968 100644 --- a/src/app/core/auth/auth.module.ts +++ b/src/app/core/auth/auth.module.ts @@ -8,6 +8,7 @@ import { ReactiveFormsModule } from "@angular/forms"; import { ForgotPasswordComponent } from "./components/forgot-password/forgot-password.component"; import { ResetPasswordComponent } from "./components/reset-password/reset-password.component"; import { TranslateModule } from "@ngx-translate/core"; +import { SharedModule } from "src/app/shared/shared.module"; const routes: Routes = [ { path: "login", component: LoginComponent }, @@ -44,6 +45,7 @@ const routes: Routes = [ CommonModule, ReactiveFormsModule, TranslateModule, + SharedModule, ], }) export class AuthModule {} diff --git a/src/app/core/auth/components/confirm-registration/confirm-registration.component.html b/src/app/core/auth/components/confirm-registration/confirm-registration.component.html index 72da839..2d7702d 100644 --- a/src/app/core/auth/components/confirm-registration/confirm-registration.component.html +++ b/src/app/core/auth/components/confirm-registration/confirm-registration.component.html @@ -11,39 +11,20 @@
- -
- -
- + diff --git a/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts b/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts index d15379f..a8d4860 100644 --- a/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts +++ b/src/app/core/auth/components/confirm-registration/confirm-registration.component.ts @@ -40,5 +40,7 @@ export class ConfirmRegistrationComponent { passwordConfirmation: this.confirmRegistrationForm.value.passwordConfirmation!, }); + + this.router.navigateByUrl("/auth/login"); } } diff --git a/src/app/core/auth/components/forgot-password/forgot-password.component.html b/src/app/core/auth/components/forgot-password/forgot-password.component.html index f188e68..f313f67 100644 --- a/src/app/core/auth/components/forgot-password/forgot-password.component.html +++ b/src/app/core/auth/components/forgot-password/forgot-password.component.html @@ -11,26 +11,12 @@
- -
- + diff --git a/src/app/core/auth/components/login/login.component.html b/src/app/core/auth/components/login/login.component.html index e8d37b0..34d454c 100644 --- a/src/app/core/auth/components/login/login.component.html +++ b/src/app/core/auth/components/login/login.component.html @@ -11,23 +11,13 @@
- - -

+

{{ "auth.not-yet-registered" | translate }}

- + + diff --git a/src/app/core/auth/components/registration/registration.component.html b/src/app/core/auth/components/registration/registration.component.html index 15fa994..838630b 100644 --- a/src/app/core/auth/components/registration/registration.component.html +++ b/src/app/core/auth/components/registration/registration.component.html @@ -11,34 +11,12 @@
- - -
-
- -

- +
+ +
+ diff --git a/src/app/core/auth/components/reset-password/reset-password.component.html b/src/app/core/auth/components/reset-password/reset-password.component.html index ec0160b..8fe0abe 100644 --- a/src/app/core/auth/components/reset-password/reset-password.component.html +++ b/src/app/core/auth/components/reset-password/reset-password.component.html @@ -11,39 +11,20 @@
- -
- -
- + diff --git a/src/app/core/components/navigation/navigation.component.html b/src/app/core/components/navigation/navigation.component.html index 7296a90..67b7bfc 100644 --- a/src/app/core/components/navigation/navigation.component.html +++ b/src/app/core/components/navigation/navigation.component.html @@ -21,18 +21,27 @@ -
- Beekeeper Logo - {{ "title" | translate }} + {{ "title" | translate }} + + + {{ + "title" | translate + }} - -
-