Skip to content

Commit

Permalink
#388: Removed branch coverage columns if no branch coverage is available
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Sep 8, 2020
1 parent 5c54844 commit cea803b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ import { CodeElementViewModel } from "./viewmodels/codelement-viewmodel.class";
[ngClass]="{'icon-up-dir_active': settings.sortBy === 'coverage' && settings.sortOrder === 'desc',
'icon-down-dir_active': settings.sortBy === 'coverage' && settings.sortOrder === 'asc',
'icon-down-dir': settings.sortBy !== 'coverage'}"></i>{{translations.coverage}}</a></th>
<th class="right"><a href="#" (click)="updateSorting('covered_branches', $event)"><i class="icon-down-dir"
<th class="right" *ngIf="branchCoverageAvailable"><a href="#" (click)="updateSorting('covered_branches', $event)"><i class="icon-down-dir"
[ngClass]="{'icon-up-dir_active': settings.sortBy === 'covered_branches' && settings.sortOrder === 'desc',
'icon-down-dir_active': settings.sortBy === 'covered_branches' && settings.sortOrder === 'asc',
'icon-down-dir': settings.sortBy !== 'covered_branches'}"></i>{{translations.covered}}</a></th>
<th class="right"><a href="#" (click)="updateSorting('total_branches', $event)"><i class="icon-down-dir"
<th class="right" *ngIf="branchCoverageAvailable"><a href="#" (click)="updateSorting('total_branches', $event)"><i class="icon-down-dir"
[ngClass]="{'icon-up-dir_active': settings.sortBy === 'total_branches' && settings.sortOrder === 'desc',
'icon-down-dir_active': settings.sortBy === 'total_branches' && settings.sortOrder === 'asc',
'icon-down-dir': settings.sortBy !== 'total_branches'}"></i>{{translations.total}}</a></th>
Expand Down
1 change: 1 addition & 0 deletions src/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ CHANGELOG
4.6.7.0

* Fix: #363: Improved handling of HTML generation (several HTML reports at once)
* Fix: #388: Removed branch coverage columns if no branch coverage is available

4.6.6.0

Expand Down

Large diffs are not rendered by default.

0 comments on commit cea803b

Please sign in to comment.