docs: add JSDoc comments to LegaInformationsComponents

This commit is contained in:
Chneemann 2024-11-12 04:49:58 +01:00
parent e49f6bd9ff
commit 7a7beda85d
3 changed files with 33 additions and 0 deletions

View file

@ -14,6 +14,9 @@ import { BtnBackComponent } from '../../buttons/btn-back/btn-back.component';
export class HelpComponent {
constructor(private location: Location) {}
/**
* Navigates back in the browser's history.
*/
backClicked() {
this.location.back();
}

View file

@ -16,14 +16,29 @@ export class ImprintComponent {
constructor(private location: Location, private router: Router) {}
/**
* OnInit lifecycle hook.
*
* Checks if the current route is '/login/privacy-policy' and sets
* `isRouteLogin` accordingly.
*/
ngOnInit(): void {
this.checkCurrentRoute();
}
/**
* Navigates back in the browser's history.
*/
backClicked() {
this.location.back();
}
/**
* Checks the current route and updates the `isRouteLogin` flag.
*
* This method retrieves the current URL from the router. If the URL
* matches '/login/imprint', it sets the `isRouteLogin` property to true.
*/
checkCurrentRoute(): void {
const currentUrl = this.router.url;
if (currentUrl === '/login/imprint') {

View file

@ -16,14 +16,29 @@ export class PrivacyPolicyComponent implements OnInit {
constructor(private location: Location, private router: Router) {}
/**
* OnInit lifecycle hook.
*
* Checks if the current route is '/login/privacy-policy' and sets
* `isRouteLogin` accordingly.
*/
ngOnInit(): void {
this.checkCurrentRoute();
}
/**
* Navigates back in the browser's history.
*/
backClicked() {
this.location.back();
}
/**
* Checks the current route and updates the `isRouteLogin` flag.
*
* This method retrieves the current URL from the router. If the URL
* matches '/login/privacy-policy', it sets the `isRouteLogin` property to true.
*/
checkCurrentRoute(): void {
const currentUrl = this.router.url;
if (currentUrl === '/login/privacy-policy') {