docs: add JSDoc comments to ButtonsComponent

This commit is contained in:
Chneemann 2024-11-12 04:44:36 +01:00
parent d8701f5cb9
commit e8d6c99089
2 changed files with 9 additions and 0 deletions

View file

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

View file

@ -13,6 +13,12 @@ export class BtnCloseComponent {
constructor(private sharedService: SharedService) {}
/**
* Called when the close button is clicked.
* Sets isAnyDialogOpen to false and sets
* isEditContactDialogOpen and isNewContactDialogOpen
* to the value of isContactDialogOpen.
*/
closeClicked() {
this.sharedService.isAnyDialogOpen = false;
this.sharedService.isEditContactDialogOpen = this.isContactDialogOpen;