Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jessewashburn committed Jan 3, 2025
1 parent 5e261e2 commit a13cb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
4 changes: 3 additions & 1 deletion src/app/health/health-event-dialog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ <h3 class="primary-text-color" *ngIf="hasConditionAndTreatment" i18n>Other Notes
</mat-dialog-content>
<mat-dialog-actions>
<button type="button" mat-raised-button mat-dialog-close i18n>Close</button>
<button type="button" color="primary" mat-dialog-close (click)="editExam(event)" *ngIf="canUpdate" mat-raised-button><span i18n>Edit <ng-container *ngIf="minutes">({{ minutes }}:{{ seconds }})</ng-container></span></button>
<button type="button" color="primary" mat-dialog-close (click)="editExam(event)" *ngIf="canUpdate" mat-raised-button>
<span i18n>Edit <ng-container *ngIf="minutes">({{ minutes }}:{{ seconds }})</ng-container></span>
</button>
</mat-dialog-actions>
15 changes: 0 additions & 15 deletions src/app/health/health-event-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@ export class HealthEventDialogComponent implements OnInit, OnDestroy {
this.seconds = parseInt(seconds, 10) < 10 ? '0' + seconds : seconds;
}

hasMultipleSections(): boolean {
const sections = [
this.event.notes,
this.event.diagnosis,
this.event.treatments,
this.event.medications,
this.event.immunizations,
this.event.allergies,
this.event.xrays,
this.event.tests,
this.event.referrals
];
return sections.filter(section => section).length > 1;
}

isLastSection(section: string): boolean {
const sections = [
'notes',
Expand Down

0 comments on commit a13cb6c

Please sign in to comment.