docs: add JSDoc comments to ButtonsComponent
This commit is contained in:
parent
d8701f5cb9
commit
e8d6c99089
2 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue