Skip to content

Commit

Permalink
make sure the currently selected report is highlighted.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Oct 3, 2023
1 parent 8e39cf6 commit f26447c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/app/pages/report-labs/report-labs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ <h1 class="az-dashboard-title">Observations</h1>
<div class="col-6">

<div ngbDropdown class="d-inline-block float-right dropdown ml-3">
<button ngbTooltip="not yet implemented" type="button" class="btn btn-outline-indigo" id="dropdownReports" ngbDropdownToggle>
<button type="button" class="btn btn-outline-indigo" id="dropdownReports" ngbDropdownToggle>
Included Reports
</button>
<div ngbDropdownMenu aria-labelledby="dropdownReports">
<button ngbDropdownItem>All</button>
<button ngbDropdownItem
[class.active]="!reportSourceId && !reportResourceType && !reportResourceId"
[routerLink]="'/labs'"
>All</button>
<button ngbDropdownItem [disabled]="true">-----</button>
<button
[class.active]="reportSourceId == diagnosticReport?.source_id && reportResourceType == diagnosticReport?.source_resource_type && reportResourceId == diagnosticReport?.source_resource_id"
*ngFor="let diagnosticReport of diagnosticReports" ngbDropdownItem
[routerLink]="'/labs/report/'+ diagnosticReport?.source_id + '/' + diagnosticReport?.source_resource_type + '/' + diagnosticReport?.source_resource_id"
>{{diagnosticReport?.sort_title}} [{{diagnosticReport?.sort_date | amDateFormat: 'LL'}}]</button>
Expand All @@ -46,8 +50,8 @@ <h1 class="az-dashboard-title">Observations</h1>
Sort By
</button>
<div ngbDropdownMenu aria-labelledby="dropdownSort">
<button ngbDropdownItem class="active">Date</button>
<button ngbDropdownItem>Name</button>
<button ngbDropdownItem>Date</button>
<button ngbDropdownItem>Status</button>
</div>
</div>
Expand Down

0 comments on commit f26447c

Please sign in to comment.