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 {
|
export class BtnBackComponent {
|
||||||
constructor(private location: Location) {}
|
constructor(private location: Location) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigates back in the browser's history.
|
||||||
|
*/
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,12 @@ export class BtnCloseComponent {
|
||||||
|
|
||||||
constructor(private sharedService: SharedService) {}
|
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() {
|
closeClicked() {
|
||||||
this.sharedService.isAnyDialogOpen = false;
|
this.sharedService.isAnyDialogOpen = false;
|
||||||
this.sharedService.isEditContactDialogOpen = this.isContactDialogOpen;
|
this.sharedService.isEditContactDialogOpen = this.isContactDialogOpen;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue