diff --git a/src/app/core/auth/components/auth/auth.component.html b/src/app/core/auth/components/auth/auth.component.html
index 1e59a05..6498532 100644
--- a/src/app/core/auth/components/auth/auth.component.html
+++ b/src/app/core/auth/components/auth/auth.component.html
@@ -9,7 +9,7 @@
-
+
{{ "title" | translate }}
{{ label | translate }}
diff --git a/src/app/core/auth/components/auth/auth.component.ts b/src/app/core/auth/components/auth/auth.component.ts
index 0418628..c7fd40a 100644
--- a/src/app/core/auth/components/auth/auth.component.ts
+++ b/src/app/core/auth/components/auth/auth.component.ts
@@ -34,7 +34,7 @@ export class AuthComponent implements OnInit {
this.authService.readUserState().subscribe(response => {
this.authService.currentState$.next(response);
- this.router.navigateByUrl("/dashboard");
+ this.router.navigateByUrl("/");
});
}
diff --git a/src/app/core/auth/components/login/login.component.ts b/src/app/core/auth/components/login/login.component.ts
index 0a18f17..eeda3c9 100644
--- a/src/app/core/auth/components/login/login.component.ts
+++ b/src/app/core/auth/components/login/login.component.ts
@@ -23,7 +23,7 @@ export class LoginComponent {
identifier: this.loginForm.value.identifier!,
password: this.loginForm.value.password!,
}).subscribe(response => {
- this.router.navigateByUrl("/dashboard");
+ this.router.navigateByUrl("/");
});
}
}
diff --git a/src/app/core/components/language-picker/language-picker.component.ts b/src/app/core/components/language-picker/language-picker.component.ts
index a11af0c..6fe61d5 100644
--- a/src/app/core/components/language-picker/language-picker.component.ts
+++ b/src/app/core/components/language-picker/language-picker.component.ts
@@ -23,27 +23,7 @@ export class LanguagePickerComponent implements OnInit {
{
label: "en",
imageSrc: "assets/en.svg"
- },
- {
- label: "tr",
- imageSrc: "assets/tr.svg"
- },
- {
- label: "es",
- imageSrc: "assets/es.svg"
- },
- {
- label: "fr",
- imageSrc: "assets/fr.svg"
- },
- {
- label: "it",
- imageSrc: "assets/it.svg"
- },
- {
- label: "jp",
- imageSrc: "assets/jp.svg"
- },
+ }
];
selectedLanguage: Language;
diff --git a/src/app/core/home/components/navigation/navigation.component.ts b/src/app/core/home/components/navigation/navigation.component.ts
index d41f4d4..a84613d 100644
--- a/src/app/core/home/components/navigation/navigation.component.ts
+++ b/src/app/core/home/components/navigation/navigation.component.ts
@@ -27,34 +27,10 @@ interface UserMenuButton {
export class NavigationComponent implements OnInit {
navigationLinks: NavigationLink[] = [
{
- routerLink: "/dashboard",
+ routerLink: "/",
imageSrc: "assets/template.svg",
label: "navigation.home",
- },
- {
- routerLink: "/location",
- imageSrc: "assets/lightbulb.svg",
- label: "navigation.locations",
- isVisible: () => this.state?.roleIdentifier === 'admin'
- },
- {
- routerLink: "/plant",
- imageSrc: "assets/template.svg",
- label: "navigation.plants",
- isVisible: () => this.state?.roleIdentifier === 'admin'
- },
- {
- routerLink: "/device",
- imageSrc: "assets/plug.svg",
- label: "navigation.devices",
- isVisible: () => this.state?.roleIdentifier === 'admin'
- },
- {
- routerLink: "/admin",
- imageSrc: "assets/admin.svg",
- label: "navigation.admin",
- isVisible: () => this.state?.roleIdentifier === 'admin'
- },
+ }
];
usermenuButtons: UserMenuButton[] = [
@@ -101,7 +77,7 @@ export class NavigationComponent implements OnInit {
.logout()
.subscribe( response => {
this.state = undefined;
- this.router.navigateByUrl('/dashboard')
+ this.router.navigateByUrl('/')
});
}