Compare commits

..

No commits in common. "0ee26ccf3d389a8ef7d537764e6d5b072ab971f8" and "31ca9cd8f4a1e755c127b06620441d48bd3ebb66" have entirely different histories.

2 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,7 @@ export class ForgetPasswordComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
this.spinnerService.showSpinner(); this.spinnerService.showSpinner();
if (this.authService.isLoggedIn$.value) { if (!this.authService.isLoggedIn$.value) {
this.router.navigate(["/dashboard"]); this.router.navigate(["/dashboard"]);
} }

View File

@ -49,7 +49,7 @@ export class RegistrationComponent implements OnInit, OnDestroy {
private settings: SettingsService private settings: SettingsService
) { ) {
this.spinnerService.showSpinner(); this.spinnerService.showSpinner();
if (this.authService.isLoggedIn$.value) { if (!this.authService.isLoggedIn$.value) {
this.router.navigate(["/dashboard"]); this.router.navigate(["/dashboard"]);
} }
this.spinnerService.hideSpinner(); this.spinnerService.hideSpinner();
@ -57,6 +57,7 @@ export class RegistrationComponent implements OnInit, OnDestroy {
ngOnInit(): void { ngOnInit(): void {
this.translate.onLangChange.pipe(takeUntil(this.unsubscriber)).subscribe(lang => { this.translate.onLangChange.pipe(takeUntil(this.unsubscriber)).subscribe(lang => {
this.confirmPrivacyString = this.translate.instant("auth.register.confirm_privacy", { url: this.settings.getPrivacyURL() }); this.confirmPrivacyString = this.translate.instant("auth.register.confirm_privacy", { url: this.settings.getPrivacyURL() });
}); });
@ -166,4 +167,8 @@ export class RegistrationComponent implements OnInit, OnDestroy {
}); });
} }
} }
log($event: Event): void {
console.log($event);
}
} }